[Bug]: Calling submit()
from the Form Context does not submit to an action
#257
Labels
bug
Something isn't working
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
The text was updated successfully, but these errors were encountered: