close default behaviour of mat dialog for close code example Example: mat dialog disable close this.dialog.open(DialogComponent, { disableClose: true });