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.