rjsf-team/react-jsonschema-form

ui:enumDisabled not working with OneOfField

Open

#2776 aperta il 23 mar 2022

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)TypeScript (2136 fork)batch import
featurehelp wantedmaterial-ui

Metriche repository

Star
 (13.175 star)
Metriche merge PR
 (Merge medio 3g 17h) (32 PR mergiate in 30 g)

Descrizione

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",

Guida contributor