[ VUE ] Stepper Modal
Hey folks,
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!
M.
Replies (1)
Hi Marcio,
You can dispose modal from your code using dispose function:
const modal = bootstrap.Modal.getInstance(myModalEl)
myModal.dispose()
Check bootstrap 5 official doc for more info:
https://getbootstrap.com/docs/5.0/components/modal/
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.
stepperObj.goFirst();