Skip to content
Bug reportDec 2, 2026· 0:23· 12 views

react-jsonschema-form: multi-select shows raw const values instead of ui:definitions titles

0:23 total

Comments · 0

Be the first to comment.

Bug reportby SceneRecap AI

mediumMulti-select / array enum options generation for uniqueItems arrays whose items use oneOf $ref. It does not seem to apply ui:definitions titles, while the single-select path does.
os: macOSapp: react-jsonschema-form playgrounddpr: 1url: /react-jsonschema-formtheme: corelocale: en-USbrowser: Chromium 151.0.7922.34timezone: Europe/Berlinviewport: 1280x720

Repro steps

  1. 1.Open the react-jsonschema-form playground with the SIMPLE sample selected and theme set to core.
  2. 2.Use a JSONSchema with $defs A, B, C (const a, b, c) and a langs array property with uniqueItems true and items of type string with oneOf $ref to the $defs.
  3. 3.Use a UiSchema with ui:definitions setting ui:title A-def, B-def, C-def for #/$defs/A, #/$defs/B and #/$defs/C. Keep formData as {}.
  4. 4.Look at the rendered Multi-select field options.
  5. 5.Scroll down 200px and compare with the Single-select field, which uses the same definitions.

Expected

The multi-select options use the ui:title values from ui:definitions: A-def, B-def, C-def. This matches the single-select field.

Actual

The multi-select options show the raw const values a, b, c. The single-select field with the same ui:definitions shows A-def, B-def, C-def correctly.

Evidence

visualJSONSchema editor shows $defs A, B, C with const a, b, c, and a langs array with uniqueItems true and items oneOf $ref.
visualUiSchema editor shows ui:definitions with ui:title A-def, B-def, C-def for #/$defs/A, B and C. formData is {}.
visualMulti-select field lists options a, b, c instead of A-def, B-def, C-def.
visualControl case: the Single-select field renders options A-def, B-def, C-def, so the ui:definitions titles resolve correctly there.
visualMulti-select still lists a, b, c while the single-select below shows A-def, B-def, C-def.
Issue markdown (copy-paste ready)
## Summary
A multi-select field (array with `uniqueItems: true` and `items.oneOf` of `$ref`) shows the raw `const` values `a b c` as option labels. It ignores the `ui:title` values from `ui:definitions`. A single-select field using the same definitions shows the titles correctly.

## Environment
- Browser: Chromium 151.0.7922.34
- OS: macOS
- Viewport: 1280x720, DPR 1
- Locale/TZ: en-US, Europe/Berlin
- App: react-jsonschema-form playground, theme `core`

## Steps to reproduce
1. Open the playground on the SIMPLE sample with theme `core` (0.0s).
2. JSONSchema: `$defs` A, B, C with `const` a, b, c. Property `langs`: `type: array`, `uniqueItems: true`, `items: { type: string, oneOf: [{ $ref: "#/$defs/..." }] }` (0.0s).
3. UiSchema: `ui:definitions` with `ui:title` A-def, B-def, C-def for `#/$defs/A`, `#/$defs/B`, `#/$defs/C`. formData `{}` (0.0s).
4. Look at the Multi-select options (0.0s).
5. Scroll down and compare with the Single-select field (3.9s).

## Expected
Multi-select options read A-def, B-def, C-def.

## Actual
Multi-select options read a, b, c (0.0s to 22.8s).

## Evidence
- 0.0s: Schema and UiSchema editors show the definitions and titles above.
- 0.0s: Multi-select lists `a`, `b`, `c`.
- 7.0s: Control case: the Single-select lists `A-def`, `B-def`, `C-def`. This works correctly.
- 22.8s: The Multi-select still shows raw values.

## Suggested area
Option label generation for multi-select (array of oneOf `$ref` items). It does not seem to resolve `ui:definitions` titles the way the single-select path does.

*Recorded with SceneRecap.*

This report was written by SceneRecap from a screen recording. Try SceneRecap free

Turn a screen recording into a bug report like this one.

Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.

Try SceneRecap free →
react-jsonschema-form: multi-select shows raw const values instead of ui:definitions titles · SceneRecap