Skip to content

Commit

Permalink
fx: correctly handle 'required' attribute for checkbox (#17541)
Browse files Browse the repository at this point in the history
  • Loading branch information
navedqb authored Feb 14, 2025
1 parent 76c7bea commit f29ceac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primeng/src/checkbox/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const CHECKBOX_VALUE_ACCESSOR: any = {
[attr.tabindex]="tabindex"
[disabled]="disabled"
[readonly]="readonly"
[attr.required]="required"
[attr.required]="required ? true : null"
[attr.aria-labelledby]="ariaLabelledBy"
[attr.aria-label]="ariaLabel"
[style]="inputStyle"
Expand Down

0 comments on commit f29ceac

Please sign in to comment.