react-jsonschema-form icon indicating copy to clipboard operation
react-jsonschema-form copied to clipboard

Support multipleOf, min, and max for numbers in Antd

Open cdussud opened this issue 5 years ago • 2 comments

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
  • [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

cdussud avatar Oct 30 '20 19:10 cdussud

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.

stale[bot] avatar Jul 31 '22 20:07 stale[bot]

I'd still like to see this fixed

cdussud avatar Aug 01 '22 08:08 cdussud

Fixed in v5 beta with https://github.com/rjsf-team/react-jsonschema-form/pull/2989

heath-freenome avatar Aug 12 '22 17:08 heath-freenome