react-jsonschema-form
react-jsonschema-form copied to clipboard
fix querySelector in Form focusOnError when id includes dots
Reasons for making this change
Fixes https://github.com/rjsf-team/react-jsonschema-form/issues/4279
Fixes Form
component focusOnFirstError
throwing an error with additionalProperties
schema and dot idSchema
e.g.
Failed to execute 'querySelector' on 'Element': 'input[id^=root.title' is not a valid selector.
Fixes by adding double quotes around id in query selector.
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