Skip to content

Commit

Permalink
Tabs: fixed last TabNav unable to be deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyoung committed Oct 12, 2018
1 parent b182a67 commit 580981d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/tabs/src/tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
if (!(panes.length === this.panes.length && panes.every((pane, index) => pane === this.panes[index]))) {
this.panes = panes;
}
} else if (this.panes.length !== 0) {
this.panes = [];
}
},
handleTabClick(tab, tabName, event) {
Expand Down

0 comments on commit 580981d

Please sign in to comment.