Skip to content

Commit

Permalink
Merge pull request #13721 from SoyDiego/13714-fix-dismissableMask-con…
Browse files Browse the repository at this point in the history
…firmPopup

13714 - fix dismissableMask on confirmPopup component
  • Loading branch information
cetincakiroglu authored Sep 26, 2023
2 parents 6130541 + 9d18d3c commit 7f78f00
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

1 comment on commit 7f78f00

@vercel
Copy link

@vercel vercel bot commented on 7f78f00 Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.