diff --git a/packages/primeng/src/dialog/dialog.ts b/packages/primeng/src/dialog/dialog.ts index b276616d5e8..02723e40bf8 100755 --- a/packages/primeng/src/dialog/dialog.ts +++ b/packages/primeng/src/dialog/dialog.ts @@ -496,19 +496,19 @@ export class Dialog extends BaseComponent implements OnInit, OnDestroy { */ @Input() headlessTemplate: TemplateRef | undefined; - @ContentChild('header') _headerTemplate: TemplateRef | undefined; + @ContentChild('header', { descendants: false }) _headerTemplate: TemplateRef | undefined; - @ContentChild('content') _contentTemplate: TemplateRef | undefined; + @ContentChild('content', { descendants: false }) _contentTemplate: TemplateRef | undefined; - @ContentChild('footer') _footerTemplate: TemplateRef | undefined; + @ContentChild('footer', { descendants: false }) _footerTemplate: TemplateRef | undefined; - @ContentChild('closeicon') _closeiconTemplate: TemplateRef | undefined; + @ContentChild('closeicon', { descendants: false }) _closeiconTemplate: TemplateRef | undefined; - @ContentChild('maximizeicon') _maximizeiconTemplate: TemplateRef | undefined; + @ContentChild('maximizeicon', { descendants: false }) _maximizeiconTemplate: TemplateRef | undefined; - @ContentChild('minimizeicon') _minimizeiconTemplate: TemplateRef | undefined; + @ContentChild('minimizeicon', { descendants: false }) _minimizeiconTemplate: TemplateRef | undefined; - @ContentChild('headless') _headlessTemplate: TemplateRef | undefined; + @ContentChild('headless', { descendants: false }) _headlessTemplate: TemplateRef | undefined; _visible: boolean = false;