pButton | Loading icon problem #13901
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
For buttons with the directive
pButton
, when the loading property changes and the loading icon is removed, an empty element take its place. This element has a margin that gives the button an empty space next to the label where the loading icon was:Environment
Windows
Reproducer
https://stackblitz.com/edit/gmhqyu-xzl3yd?file=src%2Fapp%2Fdemo%2Fbutton-loading-demo.html
Angular version
16.X
PrimeNG version
16.5.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.16
Browser(s)
No response
Steps to reproduce the behavior
pButton
now has additional spacing where the loading icon was. Furthermore, the remainingspan
has a css class named:.undefined'
Expected behavior
When the icon is removed, the
span
containing it should be removed as well.The text was updated successfully, but these errors were encountered: