You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could more documentation or examples be provided? I ask because it seems that modals continue to hang around within the DOM despite execution of the Modal.destroy()
The text was updated successfully, but these errors were encountered:
The destroy method will return the element to it's "pre-modaled" state. So if the element existed in the DOM tree before being modaled, it will be moved back there. If you are modaling a dynamically created element meaning it has no parent in the DOM tree, it should be removed from the document.
If you are dynamically generating the modal element and then appending it to the DOM each time, that could explain why you are seeing them not being destroyed.
Could more documentation or examples be provided? I ask because it seems that modals continue to hang around within the DOM despite execution of the Modal.destroy()
The text was updated successfully, but these errors were encountered: