Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkboxes array value changes do not correctly update Form UI (selection) #1281

Closed
3 tasks done
mirajp opened this issue May 12, 2019 · 1 comment
Closed
3 tasks done

Comments

@mirajp
Copy link
Contributor

mirajp commented May 12, 2019

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

  1. 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.

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

@stale
Copy link

stale bot commented Apr 15, 2022

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.

@stale stale bot added the wontfix label Apr 15, 2022
@stale stale bot closed this as completed May 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants