Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Calling submit() from the Form Context does not submit to an action #257

Closed
1 of 4 tasks
ZipBrandon opened this issue Mar 9, 2023 · 0 comments
Closed
1 of 4 tasks
Labels
bug Something isn't working

Comments

@ZipBrandon
Copy link

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 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.

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

@ZipBrandon ZipBrandon added the bug Something isn't working label Mar 9, 2023
airjp73 added a commit that referenced this issue Mar 9, 2023
@airjp73 airjp73 closed this as completed in 3503a89 Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant