diff --git a/src/app/components/dialog/dialog.ts b/src/app/components/dialog/dialog.ts index c4cbd3c54a3..0f9b9c9e3bb 100755 --- a/src/app/components/dialog/dialog.ts +++ b/src/app/components/dialog/dialog.ts @@ -646,7 +646,7 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy { this.zone.runOutsideAngular(() => { setTimeout(() => focusableElement.focus(), timeoutDuration || 5); }); - } else if (this.footerViewChild) { + } else if (this.footerViewChild && focusParentElement !== this.footerViewChild.nativeElement) { // If the content section is empty try to focus on footer this.focus(this.footerViewChild.nativeElement); }