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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user