We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce270fe commit 8e761efCopy full SHA for 8e761ef
packages/tabs/src/tabs.vue
@@ -61,7 +61,9 @@
61
this.$emit('input', value);
62
},
63
addPanes(item) {
64
- const index = this.$slots.default.indexOf(item.$vnode);
+ const index = this.$slots.default.filter(item => {
65
+ return item.elm.nodeType === 1 && /\bel-tab-pane\b/.test('el-tab-pane');
66
+ }).indexOf(item.$vnode);
67
this.panes.splice(index, 0, item);
68
69
removePanes(item) {
0 commit comments