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
When modals are opened using <a rel='modal:open'...>, they are removed from the DOM when the modal is closed. This does not happen is the modal is loaded via AJAX per the examples here.
// Open modal in AJAX callback$('#manual-ajax').click(function(event){event.preventDefault();this.blur();// Manually remove focus from clicked link.$.get(this.href,function(html){$(html).appendTo('body').modal();});});
Please consider removing the modal from the DOM when it is closed the same way that it is removed when launched from a hyperlink.
I have fixed this and tested - will submit a PR, but not sure if this project still has active maintainers?
The text was updated successfully, but these errors were encountered:
vanboom
added a commit
to vanboom/jquery-modal
that referenced
this issue
Oct 3, 2021
When modals are opened using <a rel='modal:open'...>, they are removed from the DOM when the modal is closed. This does not happen is the modal is loaded via AJAX per the examples here.
Please consider removing the modal from the DOM when it is closed the same way that it is removed when launched from a hyperlink.
I have fixed this and tested - will submit a PR, but not sure if this project still has active maintainers?
The text was updated successfully, but these errors were encountered: