Open shruti456 opened 2 years 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)?
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.