From f504245074fb0450ec69f5c64577be2716b80ac4 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 26 Oct 2020 20:47:43 +0800 Subject: [PATCH] fix(Tabs): should scroll to current content when mounted (#7411) --- src/tabs/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tabs/index.js b/src/tabs/index.js index da2af15a0..44126579d 100644 --- a/src/tabs/index.js +++ b/src/tabs/index.js @@ -189,6 +189,7 @@ export default createComponent({ this.inited = true; this.tabHeight = getVisibleHeight(this.$refs.wrap); this.scrollIntoView(true); + this.scrollToCurrentContent(true); }); },