Skip to content

Commit

Permalink
fix(MdTabs): setupObservers on mounted immediately (#1770)
Browse files Browse the repository at this point in the history
fix #1768
  • Loading branch information
VdustR authored and Samuell1 committed Jun 7, 2018
1 parent e460e58 commit d8dc038
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MdTabs/MdTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@
this.activeTab = this.mdActiveTab
},
mounted () {
this.setupObservers()
this.$nextTick().then(() => {
if (this.mdSyncRoute) {
this.setActiveTabByRoute()
Expand All @@ -254,7 +256,6 @@
window.setTimeout(() => {
this.noTransition = false
this.setupObservers()
this.setupWatchers()
}, 100)
})
Expand Down

0 comments on commit d8dc038

Please sign in to comment.