mirror of https://github.com/ElemeFE/element
Tabs: remove focus state when before-leave return a resolved promise (#11386)
parent
5ad118b7ee
commit
15c38293d1
|
@ -77,6 +77,8 @@
|
||||||
if (before && before.then) {
|
if (before && before.then) {
|
||||||
before.then(() => {
|
before.then(() => {
|
||||||
changeCurrentName();
|
changeCurrentName();
|
||||||
|
|
||||||
|
this.$refs.nav && this.$refs.nav.removeFocus();
|
||||||
});
|
});
|
||||||
} else if (before !== false) {
|
} else if (before !== false) {
|
||||||
changeCurrentName();
|
changeCurrentName();
|
||||||
|
|
Loading…
Reference in New Issue