how to disable outside click in mat dialog code example Example: mat dialog disable close this.dialog.open(DialogComponent, { disableClose: true });