niutech / showModalDialog

window.showModalDialog polyfill using a <dialog> element
https://niutech.github.io/showModalDialog/demo.html
Apache License 2.0
177 stars 88 forks source link

Uncaught Execution stopped until showModalDialog is closed #26

Closed venkatramireddy closed 6 years ago

venkatramireddy commented 7 years ago

Getting this error, I put YES or NO buttons in dialogue and returned the values with window.returnValue (0 or 1)

avnishv commented 7 years ago

Even I'm facing same issue. Any solution??

derhecht commented 7 years ago

As fas as I understand the code this is just a hint not a typical exception.

niutech commented 6 years ago

This is working as intended - the Exception is thrown in order to stop execution of the JS code until the modal dialog is closed.