react-jsonschema-form: Wrong radio button behaviour

Prerequisites

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

  1. Open playground
  2. Click to No button
  3. Data is not changed, radio button No was 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)

Most upvoted comments

@abdalla-rko it looks like this is caused by setting overrideFormDataWithDefaults to true in the first call to mergeDefaultsWithFormData in getDefaultFormState, 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