Skip to content

Commit d8dc038

Browse files
VdustRSamuell1
authored andcommitted
fix(MdTabs): setupObservers on mounted immediately (#1770)
fix #1768
1 parent e460e58 commit d8dc038

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/MdTabs/MdTabs.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@
240240
this.activeTab = this.mdActiveTab
241241
},
242242
mounted () {
243+
this.setupObservers()
244+
243245
this.$nextTick().then(() => {
244246
if (this.mdSyncRoute) {
245247
this.setActiveTabByRoute()
@@ -254,7 +256,6 @@
254256
255257
window.setTimeout(() => {
256258
this.noTransition = false
257-
this.setupObservers()
258259
this.setupWatchers()
259260
}, 100)
260261
})

0 commit comments

Comments
 (0)