Skip to content

Commit

Permalink
fixed primefaces#13901 pButton | Loading icon problem
Browse files Browse the repository at this point in the history
  • Loading branch information
eece committed Oct 18, 2023
1 parent db1c1f5 commit b03f77c
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 || 'hidden';
}

ngOnDestroy() {
Expand Down

0 comments on commit b03f77c

Please sign in to comment.