diff --git a/src/app/components/dialog/dialog.ts b/src/app/components/dialog/dialog.ts index 14f284d4a2c..258227458e6 100755 --- a/src/app/components/dialog/dialog.ts +++ b/src/app/components/dialog/dialog.ts @@ -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((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((event.target).parentElement, 'p-dialog-header-icon')) { return; }