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
The checkboxes' ui doesn't correctly reflect state changes. I can programmatically toggle the array of values that should be selected, but there is a glitch? in that the UI lags behind 1 state when selecting all/none of the values: https://codepen.io/anon/pen/VOjJmY
Steps to Reproduce
Check codepen link to ensure I'm not doing something wrong in terms of React.
Expected behavior
[What you expected to happen]
When selecting "NO", all the checkboxes should get unselected, and when reselecting "YES", all the checkboxes should get selected.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please leave a comment if this is still an issue for you. Thank you.
Prerequisites
Description
The checkboxes' ui doesn't correctly reflect state changes. I can programmatically toggle the array of values that should be selected, but there is a glitch? in that the UI lags behind 1 state when selecting all/none of the values:
https://codepen.io/anon/pen/VOjJmY
Steps to Reproduce
Expected behavior
[What you expected to happen]
When selecting "NO", all the checkboxes should get unselected, and when reselecting "YES", all the checkboxes should get selected.
Version
Latest which at time of writing is 1.5.0. I even tried a bunch of other versions and they all had same problem as far back as 1.2.1 or 1.2.0, and before that version the initial state was wrong ("YES" is default, but the radio button chosen was "NO").
https://unpkg.com/react-jsonschema-form/dist/react-jsonschema-form.js
https://unpkg.com/[email protected]/dist/react-jsonschema-form.js
The text was updated successfully, but these errors were encountered: