mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 00:14:18 +00:00
fix(indexBar): index-bar not positioned correctly when scrolled to the bottom (#10994)
This commit is contained in:
@@ -221,13 +221,13 @@ export default defineComponent({
|
||||
const scrollParentRect = useRect(scrollParent);
|
||||
const { offsetHeight } = document.documentElement;
|
||||
|
||||
match.$el.scrollIntoView();
|
||||
|
||||
if (scrollTop === offsetHeight - scrollParentRect.height) {
|
||||
onScroll();
|
||||
return;
|
||||
}
|
||||
|
||||
match.$el.scrollIntoView();
|
||||
|
||||
if (props.sticky && props.stickyOffsetTop) {
|
||||
setRootScrollTop(getRootScrollTop() - props.stickyOffsetTop);
|
||||
}
|
||||
|
Reference in New Issue
Block a user