I'm using the Angular Material dialog to show a warning message in my app.
I need to check if a dialog is already open like this:
private _openDialog() {
// if (this.dialog.isOpen()) return; <-- NOT WORKING
this.dialog.open(WarningComponent, {
width: '450px',
height: '380px',
});
}
Question: Is there any way to check if a Angular Material Dialog box is already open?