The submit handler also bakes in a call to e.preventDefault() to prevent the form default submission
Describe your changes
This PR adds a submit handler to the form. This paves the way for (what is effectively) form submit actions to be moved out of button handlers, and into a dedicated submit handler on the form level where it belongs
Types of changes
[ ] 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 change)
Checklist:
[x] I have run eslint on the code
[x] I have added JSDoc for all of my code (where applicable)
The submit handler also bakes in a call to
e.preventDefault()
to prevent the form default submissionDescribe your changes
This PR adds a submit handler to the form. This paves the way for (what is effectively) form submit actions to be moved out of button handlers, and into a dedicated submit handler on the form level where it belongs
Types of changes
Checklist:
eslint
on the codePriority:
Related Issues:
Fixes #___