react-jsonschema-form: Wrong radio button behaviour
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I’m providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
5.24.10
Current Behavior
The radio button No is not able to be checked
Expected Behavior
Radio button No should be checkable
Steps To Reproduce
- Open playground
- Click to
Nobutton - Data is not changed, radio button
Nowas not checked
Environment
- OS:
- Node:
- npm:
Anything else?
The same wrong behaviour you can observe if your are using "ui:widget": "select" so the original issue is not for radio only.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (15 by maintainers)
@abdalla-rko it looks like this is caused by setting
overrideFormDataWithDefaultstotruein the first call tomergeDefaultsWithFormDataingetDefaultFormState, which you added in #4388. Could you take a look at this regression?@AlimovSV @NishantChorge7 Looks like we have another fix coming in beta.11, hold tight
@AlimovSV Sure. We’re not set up in a way that will streamline making new releases to v5, but it shouldn’t be too bad. Backport PR is here: https://github.com/rjsf-team/react-jsonschema-form/pull/4654