Skip to content

Commit

Permalink
fix(#3076): Correctly close dialogs when use clicks somewhere on the …
Browse files Browse the repository at this point in the history
…screen (#3077)

* fix(#3076): Correctly close dialogs when use clicks somewhere on the screen

* fix(#3076): Fix linting
  • Loading branch information
tenthe authored Jul 30, 2024
1 parent 8a10b8b commit 58559f7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,12 @@ export class DialogService {
overlayRef.dispose();
}
});

if (!config.disableClose) {
overlayRef.backdropClick().subscribe(() => overlayRef.dispose());
overlayRef.backdropClick().subscribe(() => {
panelDialogComponentRef.instance.close();
overlayRef.dispose();
});
}
}

Expand Down

0 comments on commit 58559f7

Please sign in to comment.