Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button: Label Element not found #12172

Closed
denny99 opened this issue Nov 10, 2022 · 1 comment
Closed

Button: Label Element not found #12172

denny99 opened this issue Nov 10, 2022 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@denny99
Copy link
Contributor

denny99 commented Nov 10, 2022

Describe the bug

AfterViewInit:
image

Set label:
image

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

@denny99 denny99 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 10, 2022
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 10, 2022
@gucal gucal added this to the 14.2.2 milestone Nov 10, 2022
gucal added a commit that referenced this issue Nov 10, 2022
@gucal gucal linked a pull request Nov 10, 2022 that will close this issue
@mertsincan mertsincan assigned mertsincan and unassigned gucal Nov 11, 2022
@mertsincan mertsincan changed the title Component: Button: Label Element not found Button: Label Element not found Nov 11, 2022
@mertsincan
Copy link
Member

Good catch, @denny99 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants