Skip to content

Commit

Permalink
fix dialog not closing
Browse files Browse the repository at this point in the history
  • Loading branch information
dobanisola-scottlogic committed Apr 23, 2024
1 parent 7c47c3f commit 4794972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy {
}

initDrag(event: MouseEvent) {
if (DomHandler.hasClass(event.target, 'p-dialog-header-icon') || DomHandler.hasClass((<HTMLElement>event.target).parentElement, 'p-dialog-header-icon')) {
if (DomHandler.hasClass(event.target, 'p-dialog-header-icon') || DomHandler.hasClass(event.target, "p-dialog-header-close-icon") || DomHandler.hasClass((<HTMLElement>event.target).parentElement, 'p-dialog-header-icon')) {
return;
}

Expand Down

0 comments on commit 4794972

Please sign in to comment.