Tabs: fix auto scroll bug (#13696)

pull/13714/head
iamkun 2018-12-10 16:22:32 +08:00 committed by hetech
parent 7a031e6399
commit f7241f62ef
1 changed files with 3 additions and 0 deletions

View File

@ -268,6 +268,9 @@
document.addEventListener('visibilitychange', this.visibilityChangeHandler);
window.addEventListener('blur', this.windowBlurHandler);
window.addEventListener('focus', this.windowFocusHandler);
setTimeout(() => {
this.scrollToActiveTab();
}, 0);
},
beforeDestroy() {