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

Select widget broken for AntD theme in playground

Open AnimaLupi opened this issue 2 years ago • 6 comments

Prerequisites

What theme are you using?

antd

Version

5.6.0

Current Behavior

With the new release of version 5.6.0 (which contained a probably somewhat related entry: Treat multiple as a boolean rather than comparing against undefined in the SelectWidget, fixing https://github.com/rjsf-team/react-jsonschema-form/issues/3595 ), the select widget when used with the AntD theme is broken IN THE PLAYGROUND ONLY (it works properly with a local installation).

This occurs both in "Widgets" example (simple select) and in "One of" examble (select used to discriminate).

The select just display the first value and if clicked it doesn't display any other value to pick.

Expected Behavior

The select widget for antd theme should display and let pick a value as in the default theme.

Steps To Reproduce

  1. Go to the playground (sorry, not sure how to provide a specific link there)
  2. Switch to "antd" theme
  3. Select "Widgets" or "One of" example
  4. Try to change the select input value

Environment

- OS: N/A
- Node: N/A
- npm: N/A

Anything else?

As noted in the comment, there's probably some issue with the build system configuration of the playground.

AnimaLupi avatar Apr 17 '23 13:04 AnimaLupi

@AnimaLupi Wow, antd is so picky! Are you willing to provide a better fix than the one provided 5.6.0?

heath-freenome avatar Apr 21 '23 15:04 heath-freenome

This seems to be working in CodeSandbox, so this is likely an issue with our Playground build configuration rather than antd implementation

nickgros avatar Apr 22 '23 22:04 nickgros

This seems to be working in CodeSandbox, so this is likely an issue with our Playground build configuration rather than antd implementation

Correct, I did a local test installation and it's working properly.

Should I close this issue and open another for the Playground build, edit this one or leave it as it is?

AnimaLupi avatar Apr 26 '23 07:04 AnimaLupi

@AnimaLupi, please edit this one to make the real issue clear. Thanks!

heath-freenome avatar Apr 26 '23 16:04 heath-freenome

any updates on this issue?

kolbak avatar Feb 25 '25 10:02 kolbak

@kolbak as far as I can tell no one is working on a fix. Are you open to doing it?

heath-freenome avatar Feb 26 '25 22:02 heath-freenome