Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
[6.7.0 classic] Checkbox setValue() does not work for 'trueish' strings
According to the documentation: https://docs.sencha.com/extjs/6.7.0/....Checkbox.html
These values should be accepted in the checkbox:
- true
- 'true'
- '1'
- 'on'
But only the first value in the list actually checks a checkbox field when provided. All others will uncheck it (or keep it unchecked).
To reproduce it, just change lines 42-44 in the example usage fiddle to use the "claimed" string representation that would check it, and see how it doesn't when the "Select All" button is clicked in the fiddle.
One fiddle based on that would be this:
Now I'm not sure the docs should be updated, or Ext JS should be fixed to support that (again, maybe).
At some point it seems it existed a setChecked() method as I could see by a thread here from about 2010 but well, that seems to be in the past.
-
Sencha - Forum Administrator
Thank you so much for your post. I apologize for the delay. I have shared this with the support staff to look into at their earliest convenience. Your patience is greatly appreciated! We do suggest using the support portal when you need assistance with a capability of a Sencha product, you have identified a situation where a products behavior is inconsistent with the product documentation and might indicate a software bug, or when the communication between you and Sencha needs to be private.
Thanks again,
Michele
-
Ext Support Team
Hello Fabricio,
Try to comment the inputValue config and observe the behavior.Config "inputValue" overrides the possible values of checkbox(except the true or 'true').
Regards,
Kumar
Sencha Support.