react-jsonschema-form
react-jsonschema-form copied to clipboard
ui:enumDisabled not working with OneOfField
Prerequisites
- [x] I have read the documentation;
- [x] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.
- [x] 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",
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.
I think this bug is still present in 5.11.0
@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?