mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Tab: auto scroll top when switched in sticky mode (#2105)
This commit is contained in:
parent
8db25006d7
commit
ed71a88fc6
@ -156,7 +156,7 @@ export default create({
|
|||||||
this.setLine();
|
this.setLine();
|
||||||
|
|
||||||
// scroll to correct position
|
// scroll to correct position
|
||||||
if (this.position === 'page-top' || this.position === 'content-bottom') {
|
if (this.position === 'top' || this.position === 'bottom') {
|
||||||
scrollUtils.setScrollTop(window, scrollUtils.getElementTop(this.$el));
|
scrollUtils.setScrollTop(window, scrollUtils.getElementTop(this.$el));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user