react-jsonschema-form
react-jsonschema-form copied to clipboard
Support multipleOf, min, and max for numbers in Antd
Reasons for making this change
- Antd does not properly support multipleOf, min, and max for type="number" or "integer"
- It also defaults to step = 1 for all "numbers", which can cause a browser validation error for decimal input (i.e. 0.9)
If this is related to existing tickets, include links to them as well.
Checklist
- [ ] I'm updating documentation
- [ ] I've checked the rendering of the Markdown text I've added
- [x] I'm adding or updating code
- [ ] I've added and/or updated tests
- [ ] I've updated docs if needed
- [ ] I'm adding a new feature
- [ ] I've updated the playground with an example use of the feature
This issue has been automatically marked as stale 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'd still like to see this fixed
Fixed in v5 beta with https://github.com/rjsf-team/react-jsonschema-form/pull/2989