When a ValidatedForm has an action on it, call submit() from the form's context will not submit the form to the action. It will work with a standard submit button.
Expected behavior
I expect that I would be able to programmatically submit a form and have the corresponding action be targeted.
Which packages are impacted?
remix-validated-form
@remix-validated-form/with-zod
@remix-validated-form/with-yup
zod-form-data
What version of these packages are you using?
"remix-validated-form": "4.6.9"
Please provide a link to a minimal reproduction of the issue.
https://codesandbox.io/p/sandbox/throbbing-flower-4gul6q
Steps to Reproduce the Bug or Issue
When a
ValidatedForm
has anaction
on it, callsubmit()
from the form's context will not submit the form to theaction
. It will work with a standard submit button.Expected behavior
I expect that I would be able to programmatically submit a form and have the corresponding action be targeted.
Screenshots or Videos
No response
Platform
Additional context
No response