mirror of https://github.com/ElemeFE/element
Tabs: fix auto scroll bug (#13696)
parent
7a031e6399
commit
f7241f62ef
|
@ -268,6 +268,9 @@
|
|||
document.addEventListener('visibilitychange', this.visibilityChangeHandler);
|
||||
window.addEventListener('blur', this.windowBlurHandler);
|
||||
window.addEventListener('focus', this.windowFocusHandler);
|
||||
setTimeout(() => {
|
||||
this.scrollToActiveTab();
|
||||
}, 0);
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
|
|
Loading…
Reference in New Issue