Skip to content

Commit e2cd7bd

Browse files
authored
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
1 parent 456620b commit e2cd7bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/FormWizard.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@
372372
tabToActivate.active = true
373373
this.maxStep = this.startIndex
374374
this.tryChangeRoute(this.tabs[this.startIndex])
375+
this.checkStep()
375376
} else {
376377
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`)
377378
}

0 commit comments

Comments
 (0)