payload icon indicating copy to clipboard operation
payload copied to clipboard

feat: add min and max attribute to number fields

Open dkirchhof opened this issue 1 year ago • 2 comments

Description

If I set the min and / or max value for a number field, I would like to prevent the user from inserting invalid numbers before server side validation.

  • [x] I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

  • [ ] Chore (non-breaking change which does not add functionality)
  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Change to the templates directory (does not affect core functionality)
  • [ ] Change to the examples directory (does not affect core functionality)
  • [ ] This change requires a documentation update

Checklist:

  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] Existing test suite passes locally with my changes
  • [ ] I have made corresponding changes to the documentation

dkirchhof avatar Feb 22 '24 15:02 dkirchhof

I am shocked we didn't already have this in place. Thanks for opening this PR!

DanRibbens avatar Feb 22 '24 17:02 DanRibbens

Did you plan a fix for payload 2 or 3?

dkirchhof avatar Apr 26 '24 06:04 dkirchhof

Just found out that it has been fixed.

dkirchhof avatar Jun 07 '24 07:06 dkirchhof