Skip to content

Commit 15c3829

Browse files
jikkaiLeopoldthecoder
authored andcommitted
Tabs: remove focus state when before-leave return a resolved promise (#11386)
1 parent 5ad118b commit 15c3829

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/tabs/src/tabs.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
if (before && before.then) {
7878
before.then(() => {
7979
changeCurrentName();
80+
81+
this.$refs.nav && this.$refs.nav.removeFocus();
8082
});
8183
} else if (before !== false) {
8284
changeCurrentName();

0 commit comments

Comments
 (0)