rjsf-team/react-jsonschema-form

ui:enumDisabled not working with OneOfField

Open

#2 776 ouverte le 23 mars 2022

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)TypeScript (2 136 forks)batch import
featurehelp wantedmaterial-ui

Métriques du dépôt

Stars
 (13 175 stars)
Métriques de merge PR
 (Merge moyen 3j 17h) (32 PRs mergées en 30 j)

Description

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

Guide contributeur