mirror of
https://github.com/youzan/vant.git
synced 2026-05-05 01:00:55 +08:00
fix(Tabs): should scroll to current content when mounted (#7411)
This commit is contained in:
@@ -189,6 +189,7 @@ export default createComponent({
|
||||
this.inited = true;
|
||||
this.tabHeight = getVisibleHeight(this.$refs.wrap);
|
||||
this.scrollIntoView(true);
|
||||
this.scrollToCurrentContent(true);
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user