You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the latest version of PrimeNG and I am trying to use the dynamic dialog and I am receiving the following error message:
core.mjs:6672 ERROR RangeError: Maximum call stack size exceeded
at _DomHandler.getFocusableElement (primeng-dom.mjs:519:10)
at _DynamicDialogComponent.focus (primeng-dynamicdialog.mjs:1014:32)
at _DynamicDialogComponent.focus (primeng-dynamicdialog.mjs:1030:12)
at _DynamicDialogComponent.focus (primeng-dynamicdialog.mjs:1030:12)
at _DynamicDialogComponent.focus (primeng-dynamicdialog.mjs:1030:12)
at _DynamicDialogComponent.focus (primeng-dynamicdialog.mjs:1030:12)
at _DynamicDialogComponent.focus (primeng-dynamicdialog.mjs:1030:12)
at _DynamicDialogComponent.focus (primeng-dynamicdialog.mjs:1030:12)
at _DynamicDialogComponent.focus (primeng-dynamicdialog.mjs:1030:12)
at _DynamicDialogComponent.focus (primeng-dynamicdialog.mjs:1030:12)
A quick google shows that this is a common error in other versions of PrimeNG but I don't see anything listed for PrimeNG 19 so though I would raise the issue.
If you set focusOnShow: false the error will not show.
I have just discovered that if you have a template like below which I was testing with you get the error:
template: `
hello
`,
But if you use html elements then the error goes away, I must assume the focus is trying to find the first element and as there is only a string value in the content it can't find an element so throws an error.
I tested just now with the below and no error is produced:
Describe the bug
Using the latest version of PrimeNG and I am trying to use the dynamic dialog and I am receiving the following error message:
A quick google shows that this is a common error in other versions of PrimeNG but I don't see anything listed for PrimeNG 19 so though I would raise the issue.
If you set
focusOnShow: false
the error will not show.Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/github-tyawoxvu?file=README.md
Environment
Angular version
19.0.6
PrimeNG version
v19
Node version
22.13.0
Browser(s)
Chrome
Steps to reproduce the behavior
Expected behavior
No error message in console
The text was updated successfully, but these errors were encountered: