payload icon indicating copy to clipboard operation
payload copied to clipboard

chore: return valid as true if no validation function provided

Open JarrodMFlesch opened this issue 10 months ago • 0 comments

Description

Previously, if no validation function was passed in, many of these would return undefined when called. This causes issues inside the useField hook where it runs the validation function and isValid evaluates to undefined.

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

Type of change

  • [x] Bug fix (non-breaking change which fixes an issue)

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

JarrodMFlesch avatar Apr 24 '24 20:04 JarrodMFlesch