vodkabears / Remodal

No longer actively maintained.
http://vodkabears.github.io/remodal/
MIT License
2.75k stars 771 forks source link

Remodal stuck on "closing" state #241

Closed schuylr closed 7 years ago

schuylr commented 8 years ago

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!