react-jsonschema-form icon indicating copy to clipboard operation
react-jsonschema-form copied to clipboard

schema with "oneOf" and default value - acts weird

Open aodinok opened this issue 1 year ago • 1 comments

Prerequisites

What theme are you using?

core

Version

5.x

Current Behavior

When using oneOf in schema with default value you need to select oneOf option twice to actually do the change. First click removes default value, and second does switch:

https://github.com/rjsf-team/react-jsonschema-form/assets/11699084/c57df349-33ab-4a65-978c-f3056fc00e6d

Playground link

Expected Behavior

Switch should happen after first click

Steps To Reproduce

See playground.

Environment

- OS: MacOS, Chrome
- Node: v20.2.0
- npm: 10.2.4

Anything else?

No response

aodinok avatar Nov 27 '23 15:11 aodinok

@aodinok Wow, that is weird. Given that we only have a few volunteers who work a few hours a week on this, do you think you can provide a fix for us?

heath-freenome avatar Dec 01 '23 20:12 heath-freenome