Skip to content

Commit

Permalink
fix(primeng/p-button): add disable class on host element
Browse files Browse the repository at this point in the history
  • Loading branch information
volvachev authored and Egor Volvachev committed Mar 4, 2023
1 parent fa4a718 commit 16317a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ export class ButtonDirective implements AfterViewInit, OnDestroy {
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
host: {
class: 'p-element'
class: 'p-element',
'[class.p-disabled]': 'disabled' || 'loading'
}
})
export class Button implements AfterContentInit {
Expand Down

0 comments on commit 16317a6

Please sign in to comment.