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
@mehmetcetin01140 unfortunately I couldn't reproduce this bug on stackblitz. It's something related to my project, but I didn't find what exactly. I'll close the issue.
When I use p-dropdown inside ng-template, I'm getting TypeError: Cannot read properties of null (reading 'classList').
Here is my code. As you see, p-dropdown inside ng-template.
Error throws on second line in this method, because there is no parentElement for p-dropdown inside ng-template.
I made simple solution: I wrapped p-dropdown via some div, but it broke my layout. I'll fix my layout, that's no problem.
Maybe it will be better to fix this line of code like this (to avoid such problems in other developers):
const isInFloatingLabel = parentElement?.classList?.contains('p-float-label');
Environment
any
Reproducer
No response
Angular version
17.3.8
PrimeNG version
17.16.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.10.0
Browser(s)
any
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: