primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
9.53k stars 4.47k forks source link

Component: Dialog - error when using Headless mode #15364

Open nckirik opened 2 weeks ago

nckirik commented 2 weeks ago

Describe the bug

when Dialog becomes visible in headless mode, i get this error.

ERROR TypeError: this.contentViewChild is undefined

the error and stack trace generated by the run time wasn't helpful, so i tried to trace the error.

currently, the only workaround i can see is using [focusOnShow]="false" so focus won't be called

Environment

AnalogJS in NX workspace

AnalogJS: 1.2.2 NX: 18.3.2 PrimeNG: 17.14.1 Angular: 17.3.5 Node:

Reproducer

https://stackblitz.com/edit/github-ruzusn?file=src%2Fapp%2Fapp.component.ts

Angular version

17.3.5

PrimeNG version

17.14.1

Build / Runtime

TypeScript

Language

TypeScript

Node version (for AoT issues node --version)

20.12.2

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response