Steps to reproduce, given an element with id of modal and using jQuery:
$('#modal').remodal().open();
// Modal is OPEN
$('#modal').remodal().close();
// Modal is CLOSING, then CLOSED
$('#modal').remodal().close();
// Modal is STUCK as CLOSING
$('#modal').remodal().open(); // or close()
// Modal is forever stuck on CLOSING, can't be opened
For now, I'll use getState to ensure that the modal is open before attempting to close it!
Steps to reproduce, given an element with id of
modal
and using jQuery:For now, I'll use
getState
to ensure that the modal is open before attempting to close it!