diff --git a/src/app/components/button/button.ts b/src/app/components/button/button.ts index 3237ce4087c..b3f287f6e5b 100755 --- a/src/app/components/button/button.ts +++ b/src/app/components/button/button.ts @@ -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() {