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

ui:enumDisabled not working with OneOfField

Open Morriz opened this issue 3 years ago • 3 comments

Prerequisites

Description

Setting ui:enumDisabled options on a oneOf schema does not pass the enumDisabled options to the widget being rendered.

Steps to Reproduce

  1. Go to this playground fiddle
  2. observe that 'multi['ui:enumDisabled']: [1] does not disable the second option

Expected behavior

The option to be disabled

Version

    "@rjsf/core": "^4.0.1",
    "@rjsf/material-ui": "^4.0.1",

Morriz avatar Mar 23 '22 10:03 Morriz

This issue has been automatically marked as possibly close because it has not had recent activity. It will be closed if no further activity occurs. Please leave a comment if this is still an issue for you. Thank you.

stale[bot] avatar Jul 09 '23 04:07 stale[bot]

I think this bug is still present in 5.11.0

nickgros avatar Jul 21 '23 16:07 nickgros

@Morriz ui:enumDisabled is only designed to work for enum not oneOf. What you are asking for is a new feature. Want to build it?

heath-freenome avatar Oct 31 '25 20:10 heath-freenome