mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[bugfix] Tab: auto scroll top when switched in sticky mode (#2105)
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user