Environment
- Hosting type
- Formio.js version: 5.2.0
- Frontend framework: Angular 18
- Browser: Chrome
Steps to Reproduce
- Enter in formio builder
- Open a modal (ex: editing a component)
- Leaving the form without closing the modal (In our case, is a login redirection that happens when user becomes inactive)
- Once redirected the modal html keeps displaying while the component shoul've been destroyed.
Expected behavior
All rendered html elements including flatpickr and formio modals should be destroyed once the angular component is destroyed.
Observed behavior
We've observed through an html inspection that both flatpickr and formio-dialog are still present in the html outside the main angular
Example
Modal after redirection (should be destroyed):
Html:
