bahadirsofuoglu / form-wizard-vue3

A form wizard/stepper component made with Vue
https://bahadirsofuoglu.github.io/form-wizard-vue3/
MIT License
30 stars 6 forks source link

Access to next and previus buttons events #20

Closed Koki81 closed 2 years ago

Koki81 commented 2 years ago

Hi, I can't use emit change it's not working when I want to change the tab with emit. trigerNextClick() { let newTabIndex = this.currentTabIndex + 1; let oldTabIndex = this.currentTabIndex; // this.onChangeCurrentTab(newTabIndex, oldTabIndex); this.$emit("change", newTabIndex, oldTabIndex); // this.$refs.wizard; },

bahadirsofuoglu commented 2 years ago

Hi, You cant use the change event for tab changing. Change event only for getting current tab index.