I recently implemented the Angular Material dialog in my app to display warning messages.
Now, I'm facing a challenge where I need to determine if a dialog is already open:
private _openDialog() {
// if (this.dialog.isOpen()) return; <-- NOT WORKING
this.dialog.open(WarningComponent, {
width: '450px',
height: '380px',
});
}
Inquiry: Is there a method to verify if an Angular Material Dialog box is currently open?