Open Zardoz89 opened 3 years ago
The same problem here
I'm encountering this issue - any movement on it yet?
Well... actually you can remove this polyfill on Firefox v >= 98 . It's what I actually I did.
Make sure you are using the polyfill only when needed, before registering the dialog, example;
if (typeof HTMLDialogElement !== "function") {
dialogPolyfill.registerDialog("your-dialog");
}
This should fix any errors you are having.
This should fix any errors you are having.
Except if the user it's using a older Firefox release (very strange, but can happen)
This also happens in older versions of Safari, eg 12.1.2. We solved this by wrapping the call in a try ... catch
block
On Firefox, on the console shows this error every time that I close a dialog :