[ VUE ] Stepper Modal
When I submitted the form, can't really reset the modal.
Could you please give the right way to dispose the modal after hide it?
Thanks in advance!
You can dispose modal from your code using dispose function:
const modal = bootstrap.Modal.getInstance(myModalEl)
Check bootstrap 5 official doc for more info:
To reset our stepper you need to do two actions:
- Using the goFirst function open the first stepper step.
- Update all your stepper input fields with init values.