seas-computing / mark-one

A UI component library for building React Apps (in development)
https://seas-computing.github.io/mark-one/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Add submit handler for form component #164

Closed rmainwork closed 6 months ago

rmainwork commented 6 months ago

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

Checklist:

Priority:

Related Issues:

Fixes #___