mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Tabs: remove focus state when before-leave return a resolved promise (#11386)
This commit is contained in:
@@ -77,6 +77,8 @@
|
||||
if (before && before.then) {
|
||||
before.then(() => {
|
||||
changeCurrentName();
|
||||
|
||||
this.$refs.nav && this.$refs.nav.removeFocus();
|
||||
});
|
||||
} else if (before !== false) {
|
||||
changeCurrentName();
|
||||
|
||||
Reference in New Issue
Block a user