vodkabears / Remodal

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

Dialog not closing after browser print dialog was opened and closed #240

Open swbdev opened 8 years ago

swbdev commented 8 years ago

Hi,

I have the following situation: I created and opened a Remodal dialog (Remodal v1.0.7), then I opened the browser print dialog via javascript. After I cancelled the print dialog, I can't close the Remodal dialog anymore via the submit button or via ESC. Nothing happens and the dialog stays open.

I found out that this problem only occurs on Google Chrome version 50 or 51. At version 49, the dialog was closing as expected.

Any solution for this?

swbdev commented 8 years ago

Tried to find a workaround for this via registering a click handler on the submit button by myself and close the Remodal dialog. But not even my click handler gets fired.

Now I opened the print dialog with a delay delay of 500ms and this seems to be a working workaround.