Skip to content

Commit

Permalink
Merge pull request #13922 from eece/issue-13901
Browse files Browse the repository at this point in the history
fixed #13901 pButton | Loading icon problem
  • Loading branch information
cetincakiroglu authored Oct 26, 2023
2 parents e5b282a + 1905c5f commit 2a6c82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class ButtonDirective implements AfterViewInit, OnDestroy {
}

getIconClass() {
return this.loading ? 'p-button-loading-icon ' + (this.loadingIcon ? this.loadingIcon : 'p-icon') : this.icon;
return this.loading ? 'p-button-loading-icon ' + (this.loadingIcon ? this.loadingIcon : 'p-icon') : this.icon || 'p-hidden';
}

ngOnDestroy() {
Expand Down

1 comment on commit 2a6c82e

@vercel
Copy link

@vercel vercel bot commented on 2a6c82e Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.