2
0
mirror of https://github.com/tenrok/vue-form-wizard.git synced 2026-06-17 09:50:33 +03:00

Fix #28 Error to activate tab in destroyed hook

This commit is contained in:
cristijora
2017-08-06 22:21:55 +03:00
parent 9d7a019e3a
commit f369fde5ad
5 changed files with 140 additions and 80 deletions
+5 -3
View File
@@ -362,9 +362,11 @@
activateTab (index) {
this.deactivateTabs()
let tab = this.tabs[index]
tab.active = true
tab.checked = true
this.tryChangeRoute(tab)
if (tab) {
tab.active = true
tab.checked = true
this.tryChangeRoute(tab)
}
},
activateTabAndCheckStep (index) {
this.activateTab(index)