rjsf-team / react-jsonschema-form

A React component for building Web forms from JSON Schema.
https://rjsf-team.github.io/react-jsonschema-form/
Apache License 2.0
14.3k stars 2.19k forks source link

Enum select forms do not update their value in the ui - charka-ui theme #3422

Closed Yoseftickx closed 1 year ago

Yoseftickx commented 1 year ago

Prerequisites

What theme are you using?

chakra-ui

Version

5.0.1

Current Behavior

When using the enum property with a list of simple values in the json schema. The form is rendered as expected however when selecting a value from the select dropdown the ui is never updated to show this new selected value. The form data is however updated with the selected value

Expected Behavior

The chakra-ui select field should update its shown ui to reflect the form data.

Steps To Reproduce

  1. go to playground https://rjsf-team.github.io/react-jsonschema-form/
  2. select numbers example
  3. select chakra-ui theme
  4. try to change the value of the Number enum field - which is a select
  5. observe that the value did not change in the ui
  6. observe that the value DID change in the formdata area

Environment

Your own playground.

Anything else?

playground link No response

nickgros commented 1 year ago

Good catch! You are welcome to make a pull request to fix it. @heath-freenome may also take a look to see if recent changes caused a regression.