Skip to content

Commit ae942e1

Browse files
authored
[MdTabs] fix mdActiveTab not selecting set tab on load
content and indicator were not initializing to the set active tab
1 parent 0f96730 commit ae942e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/MdTabs/MdTabs.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@
251251
252252
return this.$nextTick()
253253
}).then(() => {
254-
this.setActiveButtonEl()
255-
this.calculateTabPos()
256-
257254
window.setTimeout(() => {
255+
this.setActiveButtonEl();
256+
this.activeTabIndex = [].indexOf.call(this.activeButtonEl.parentNode.childNodes, this.activeButtonEl);
257+
this.callResizeFunctions();
258258
this.noTransition = false
259259
this.setupObservers()
260260
}, 100)

0 commit comments

Comments
 (0)