Skip to content

Commit d32d4da

Browse files
committed
update tabs.vue
1 parent 10e7574 commit d32d4da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/tabs/src/tabs.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@
4545
},
4646
currentName(value) {
4747
if (this.$refs.nav) {
48-
this.$nextTick(_ => {
49-
this.$refs.nav.scrollToActiveTab();
48+
this.$nextTick(() => {
49+
this.$refs.nav.$nextTick(_ => {
50+
this.$refs.nav.scrollToActiveTab();
51+
});
5052
});
5153
}
5254
}

0 commit comments

Comments
 (0)