Skip to content

Commit

Permalink
fix dismissableMask on confirmPopup component
Browse files Browse the repository at this point in the history
  • Loading branch information
SoyDiego committed Sep 24, 2023
1 parent 396297a commit 9d18d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/confirmpopup/confirmpopup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export class ConfirmPopup implements AfterContentInit, OnDestroy {
const documentTarget: any = this.el ? this.el.nativeElement.ownerDocument : this.document;

this.documentClickListener = this.renderer.listen(documentTarget, documentEvent, (event) => {
if (this.confirmation) {
if (this.confirmation && this.confirmation.dismissableMask !== false) {
let targetElement = <HTMLElement>this.confirmation.target;
if (this.container !== event.target && !this.container?.contains(event.target) && targetElement !== event.target && !targetElement.contains(event.target)) {
this.hide();
Expand Down

0 comments on commit 9d18d3c

Please sign in to comment.