Skip to content

Commit

Permalink
[MdTabs] fix mdActiveTab not selecting set tab on load
Browse files Browse the repository at this point in the history
content and indicator were not initializing to the set active tab
  • Loading branch information
gaby64 authored Jan 6, 2020
1 parent 0f96730 commit ae942e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/MdTabs/MdTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@
return this.$nextTick()
}).then(() => {
this.setActiveButtonEl()
this.calculateTabPos()
window.setTimeout(() => {
this.setActiveButtonEl();
this.activeTabIndex = [].indexOf.call(this.activeButtonEl.parentNode.childNodes, this.activeButtonEl);
this.callResizeFunctions();
this.noTransition = false
this.setupObservers()
}, 100)
Expand Down

0 comments on commit ae942e1

Please sign in to comment.