tushargugnani / vue-step-wizard

A simple VueJS Step / Form Wizard plugin with Validation Support.
MIT License
118 stars 29 forks source link

Error switching to validated tab #15

Closed SlyDave closed 3 years ago

SlyDave commented 3 years ago

vue-step-wizard: 0.1.16 Vue: 2.6.12

Clicking a tab title to select that tab after it has been validated results in the following error:

vue.common.dev.js:630 [Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'isValidated' of undefined"

found in

---> <FormWizard>
       <BVTransporter>
         <BModal>
           <ScheduleLeave> at resources/assets/js/components/ScheduleLeave.vue
             <Root>
warn @ vue.common.dev.js:630
logError @ vue.common.dev.js:1889
globalHandleError @ vue.common.dev.js:1884
handleError @ vue.common.dev.js:1844
invokeWithErrorHandling @ vue.common.dev.js:1867
invoker @ vue.common.dev.js:2184
original._wrapper @ vue.common.dev.js:7543
vue.common.dev.js:1893 TypeError: Cannot read property 'isValidated' of undefined
    at VueComponent.selectTab (vue-step-wizard.common.js:2180)
    at click (vue-step-wizard.common.js:2036)
    at invokeWithErrorHandling (vue.common.dev.js:1859)
    at HTMLLIElement.invoker (vue.common.dev.js:2184)
    at HTMLLIElement.original._wrapper (vue.common.dev.js:7543)

It does however, switch to the tab in question, and appears to continue to work as expected.

Worth noting this error does not occur if you change tab using the previous button/event

tushargugnani commented 3 years ago

@SlyDave Fixed the issue. Thank you for reporting. Please update the package.