GoogleChrome / dialog-polyfill

Polyfill for the HTML dialog element
BSD 3-Clause "New" or "Revised" License
2.45k stars 245 forks source link

Not working in Safari 15.3 #233

Open shruti456 opened 2 years ago

shruti456 commented 2 years ago

I am using it in Angular project and the code snippet looks like this

import dialogPolyfill from 'dialog-polyfill';

if (this.dialogBox) { dialogPolyfill.registerDialog(this.dialogBox.nativeElement); this.dialogBox.nativeElement.showModal(); }

The dialog is rendered on the normal page and not as a modal window Please help me understand what is missing.

t-mish commented 1 year ago

I didn't give this polyfill a try as the author did, but I know that the same behavior is actual a for normal dialog. Hence, it seems that polyfill just recognizes Safari 15.3 as supporrting browser (which is not true)?