Skip to content

Commit

Permalink
Fixed #10140 - p-disabled class missing on p-button
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Apr 20, 2021
1 parent 150b07e commit 88bd03c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export class ButtonDirective implements AfterViewInit, OnDestroy {
<button [attr.type]="type" [class]="styleClass" [ngStyle]="style" [disabled]="disabled"
[ngClass]="{'p-button p-component':true,
'p-button-icon-only': (icon && !label),
'p-disabled': disabled,
'p-button-vertical': (iconPos === 'top' || iconPos === 'bottom') && label}"
(click)="onClick.emit($event)" (focus)="onFocus.emit($event)" (blur)="onBlur.emit($event)" pRipple>
<ng-content></ng-content>
Expand Down

0 comments on commit 88bd03c

Please sign in to comment.