Checkbox: v14 demo code wrong binary parameter #15167
Labels
Component: Documentation
Issue or pull request is related to Documentation
Resolution: Stale
Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response
Describe the bug
On the checkbox documentation of v14, the demo can be used in stackblitz to play around with checkboxes.
The code used for a 'Basic checkbox' does not use the 'binary' parameter correctly because it isn't encapsulated in square brackets and not property bound to the p-checkbox component.
This causes the value to be interpreted as a string instead of a boolean, and changing the value from "true" to "false" will not have the expected result.
I ask for the parameter to be used correctly to avoid confusion for developers in the future.
Environment
Provided stackblitz project of the primeng checbox demo.
https://stackblitz.com/edit/primeng-checkbox-demo?file=src%2Fapp%2Fapp.component.html
Reproducer
No response
Angular version
11.0.0
PrimeNG version
14.0.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
n/a
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: