1
0
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:
Andreas Coroiu 2023-08-25 13:24:38 +02:00
parent e4aacd5bbc
commit f52890d8b9
No known key found for this signature in database
GPG Key ID: E70B5FFC81DFEC1A

View File

@ -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;
}