-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
material-ui
Version
5.16.1
Current Behavior
Current state:
I use currently JSON Schema with enumNames
but in DevTools it is shouting that enumNames
are depreciated enumTitles
.
(console warnings
After trying to change to enumTitles
:
After changing to enumTitles
I have the same label
and value
in my inputs and I do not have my input label which was normally working when it was under enumNames
Expected Behavior
To have label from enumTitles
and value from enum
=> to just have working enumTitles
like enumNames
(depreciated) is working
Steps To Reproduce
Reproduce console warnings ⚠️
You can reproduce console warnings
enumNames
in local environment and devTools will shout as loud as possible 😅
Reproduce enumTitles
not working as labels
You can check if enumTitles
not working you can just paste this example JSON Schema into playground:
https://rjsf-team.github.io/react-jsonschema-form/
{
"title": "Color Selector",
"type": "object",
"properties": {
"favoriteColor": {
"type": "string",
"title": "Choose your favorite color",
"enum": [
"red",
"green",
"blue"
],
"enumTitles": [
"Red like a fire",
"Green like a grass",
"Blue like an ocean"
]
}
},
"required": [
"favoriteColor"
]
}
Environment
- OS: Windows 11
- Node: 18.1
- pnpm: 8.14
Anything else?
No response