Button: Label Element not found #12172
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
AfterViewInit:
Set label:
As you can see in the code snippets above. If you set the label after the component has been initialized, the label won't exists and therefore the setter crashes.
Environment
Standard PrimeNG UI. See reproducer
Reproducer
https://stackblitz.com/edit/github-tmcxm2
Angular version
14.x.x
PrimeNG version
14.2.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.1.0
Browser(s)
Chrome 107
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: