rjsf-team/react-jsonschema-form
Auf GitHub ansehenui:enumDisabled not working with OneOfField
Open
#2.776 geöffnet am 23. März 2022
featurehelp wantedmaterial-ui
Repository-Metriken
- Stars
- (13.175 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 3T 17h) (32 gemergte PRs in 30 T)
Beschreibung
Prerequisites
- I have read the documentation;
- In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
- Ideally, I'm providing a sample JSFiddle or a shared playground link demonstrating the issue.
Description
Setting ui:enumDisabled options on a oneOf schema does not pass the enumDisabled options to the widget being rendered.
Steps to Reproduce
- Go to this playground fiddle
- 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",