Skip to content

Commit

Permalink
Fixed #14583
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Jan 18, 2024
1 parent 22bcad6 commit 92cab57
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,9 @@ export class ButtonDirective implements AfterViewInit, OnDestroy {
<button
[attr.type]="type"
[attr.aria-label]="ariaLabel"
[class]="styleClass"
[ngStyle]="style"
[disabled]="disabled || loading"
[ngClass]="buttonClass()"
[ngClass]="buttonClass"
(click)="onClick.emit($event)"
(focus)="onFocus.emit($event)"
(blur)="onBlur.emit($event)"
Expand Down Expand Up @@ -428,7 +427,7 @@ export class Button implements AfterContentInit {
};
}

buttonClass() {
get buttonClass() {
return {
'p-button p-component': true,
'p-button-icon-only': (this.icon || this.iconTemplate || this.loadingIcon || this.loadingIconTemplate) && !this.label,
Expand Down

0 comments on commit 92cab57

Please sign in to comment.