Skip to content

Commit 40bc4f8

Browse files
author
Pooya Parsa
committed
[tabs] fixes bootstrap-vue#222
1 parent cec0465 commit 40bc4f8

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/components/tabs.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
/**
145145
* Dynamically update tabs
146146
*/
147-
_updateTabs() {
147+
updateTabs() {
148148
// Probe tabs
149149
if (this.$slots.default) {
150150
this.tabs = this.$slots.default.filter(tab => tab.componentInstance || false)
@@ -175,15 +175,6 @@
175175
}
176176
177177
this.setTab(tabIndex || 0, true);
178-
},
179-
180-
/**
181-
* Wait for next tick so we can ensure DOM is updated before we inspect it
182-
*/
183-
updateTabs() {
184-
this.$nextTick(() => {
185-
this._updateTabs();
186-
});
187178
}
188179
},
189180
mounted() {

0 commit comments

Comments
 (0)