Skip to content

Commit

Permalink
[tabs] fixes #222
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Apr 12, 2017
1 parent cec0465 commit 40bc4f8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/components/tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
/**
* Dynamically update tabs
*/
_updateTabs() {
updateTabs() {
// Probe tabs
if (this.$slots.default) {
this.tabs = this.$slots.default.filter(tab => tab.componentInstance || false)
Expand Down Expand Up @@ -175,15 +175,6 @@
}
this.setTab(tabIndex || 0, true);
},
/**
* Wait for next tick so we can ensure DOM is updated before we inspect it
*/
updateTabs() {
this.$nextTick(() => {
this._updateTabs();
});
}
},
mounted() {
Expand Down

0 comments on commit 40bc4f8

Please sign in to comment.