Modals Persist Between States

Actually, this is a bit worse than I thought. Right now, if you go to multiple states that have modals and open the modal, you get numerous modals on the DOM.

Example :

Go to Page A that has modal.
Open modal
Navigate to page B.
Go back to Page A.
Open Modal.

You now have 2 modals in the DOM.

At some point in the past, I was pretty sure that Ionic only allowed one modal on the DOM at once. However, I can’t find that in the code anymore.