Crash when changing Button Icon #10138
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://stackblitz.com/edit/github-5mkgtv?file=src/app/app.component.html
Current behavior
Using a button that has no icon initially fails as the Dom Element won't be generated but is tried to be update when chaning the icon on the fly.
Expected behavior
Buttons without any icon can get a new icon after rendering
What is the motivation / use case for changing the behavior?
In our use case, we wrapped the primeng buttons, disable them on click and show a progress spinner to avoid double clicks.
Angular version: 11.X
PrimeNG version: 11.3.1
Browser: [all]
Language: [TypeScript 4.2]
The text was updated successfully, but these errors were encountered: