Tabs: fixed last TabNav unable to be deleted (#13039)

pull/13042/head
hetech 2018-10-12 22:41:30 +08:00 committed by GitHub
parent edb3c9b785
commit efcfbdde0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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) {