2
0
mirror of https://github.com/tenrok/vue-form-wizard.git synced 2026-06-09 04:32:24 +03:00

fix on mounted hook in FormWizard

doing a checkStep() if user passed a startIndex prop > 0. 
Fix when user want to start on final step => final button wasn't shown
This commit is contained in:
David Mamane
2017-06-06 12:02:46 +02:00
committed by GitHub
parent 456620b627
commit e2cd7bd6bf
+1
View File
@@ -372,6 +372,7 @@
tabToActivate.active = true
this.maxStep = this.startIndex
this.tryChangeRoute(this.tabs[this.startIndex])
this.checkStep()
} else {
console.warn(`Prop startIndex set to ${this.startIndex} is greater than the number of tabs - ${this.tabs.length}. Make sure that the starting index is less than the number of tabs registered`)
}