react-jsonschema-form
react-jsonschema-form copied to clipboard
Make fields with const pre-fiiled and readonly #3843
Reasons for making this change
Continued the work from #3843. Fixes #2600.
If fields have const definition, make the value as pre-filled default and also make the fields readonly. (current logic will just ignore the const value and leave blank input for users.
Checklist
- [ ] I'm updating documentation
- [ ] I've checked the rendering of the Markdown text I've added
- [ ] I'm adding or updating code
- [ ] I'm adding a new feature
- [ ] I've updated the playground with an example use of the feature