rjsf-team/react-jsonschema-form
View on GitHubliveValidate does not work for integer input
Open
#4038 opened on Jan 11, 2024
bughelp wanted
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?
core
Version
5.x
Current Behavior
See this playground, liveValidate has no effect on integer properties, you can enter any text there. Maybe related, most themes seem to always use the updown widget instead of the documented input[type=number].
Expected Behavior
Entering something like abc should invalidate immediately when liveValidate is checked
Steps To Reproduce
schema:
{
"title": "Validation",
"type": "object",
"properties": {
"age": {
"type": "integer",
"title": "Age"
}
}
}
alternatively: open playground linked above
- Set
liveValidate: true - Enter
abcin integer field - No hint or error appears.
Note that the "Validation" examples work.
Environment
Current playground.
Anything else?
No response