primefaces / primefaces/primeng
checkbox disabled with true value not displayed properly
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.5k
- Forks
- 5.1k
- PR merge metrics
- No merged PRs in 30d
Description
PrimeNG 20.3.0
<p-checkbox [ngModel]="true" [binary]="true" [readonly]="true" /> <p-checkbox [ngModel]="true" [binary]="true" [disabled]="false" /> <p-checkbox [ngModel]="false" [binary]="true" [disabled]="true" />
Third checkbox is displayed as not checked.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the three p-checkbox cases from the issue in PrimeNG 20.3.0 and trace the p-checkbox component implementation. Verify the disabled checkbox with a false value is rendered as checked when binary mode is enabled, while the readonly and enabled examples remain correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100