You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p-checkbox [required]="false" /> results in the markup <input type="checkbox" required="false" />, which actually indicates that <input>is required.
The expected HTML in this scenario is <input type="checkbox" />, as the lack of the required property is the proper indication that the input is not required.
Describe the bug
<p-checkbox [required]="false" />
results in the markup<input type="checkbox" required="false" />
, which actually indicates that<input>
is required.The expected HTML in this scenario is
<input type="checkbox" />
, as the lack of therequired
property is the proper indication that the input is not required.Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/stackblitz-starters-pf6qupkm
Environment
macOS 15.3
Angular version
19.0.0
PrimeNG version
v19
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
Create a
<p-checkbox>
withrequired
set tofalse
.Expected behavior
The
required
property is not present on checkbox inputs that are not required.The text was updated successfully, but these errors were encountered: