mirror of
https://github.com/bitwarden/browser.git
synced 2025-03-10 13:09:37 +01:00
[PM-2014] fix: dialog close bug
This commit is contained in:
parent
e4aacd5bbc
commit
f52890d8b9
@ -11,10 +11,11 @@ export class DialogCloseDirective {
|
||||
|
||||
@HostBinding("attr.disabled")
|
||||
get disableClose() {
|
||||
return this.dialogRef.disableClose ? true : null;
|
||||
return this.dialogRef?.disableClose ? true : null;
|
||||
}
|
||||
|
||||
@HostListener("click") close(): void {
|
||||
@HostListener("click")
|
||||
close(): void {
|
||||
if (this.disableClose) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user