Closed MichaelParadis closed 3 months ago
Published Pre-release for 44fe660757574769c6cb9e6d77a964ebfd5d206a with versions:
- @jobber/components@5.20.7-JOB-98794.9+44fe6607
To install the new version(s) for Web run:
npm install @jobber/components@5.20.7-JOB-98794.9+44fe6607
Latest commit: |
f85fc8d
|
Status: | ✅ Deploy successful! |
Preview URL: | https://02f17d34.atlantis.pages.dev |
Branch Preview URL: | https://job-98794-fix-form-not-alway.atlantis.pages.dev |
Motivations
This PR allowed for nested Input names. However the focus on error functionality wasn't updated there so when there were nested Form Input names it wouldn't focus on the first input with an error due to it determining the input's name incorrectly. This PR works to address that by leveraging react-hook-forms'
focusOnError
behaviour.Changes
Added
Changed
Deprecated
Removed
Fixed
Security
Testing
See the mentioned PR for ways of testing in another project. To test in storybook run
git revert 44fe660757574769c6cb9e6d77a964ebfd5d206a
Navigate to theForm Error Focus Test
and verify the correct inputs are focused when the form is submitted and there is a validation error. The link locally is http://localhost:6005/?path=/story/components-forms-and-inputs-form-web--error-focus-testChanges can be tested via Pre-release
In Atlantis we use Github's built in pull request reviews.