Potential issue with useFormContext's submit function #161
Unanswered
ryanwoodcox
asked this question in
Q&A
Replies: 1 comment
-
I guess the wording here is a bit confusing. The PRs welcome with alternate wording! :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When reading the useFormContext docs, I found this to not be true:
submit
function returned from useFormContext, any clickHandler on the form's button with type="submit" are ignored.submit
function returned from useFormContext, the value for the form's button with type="submit" is notsubmitted. To check this, give the button a name="test" and a value="123".
Beta Was this translation helpful? Give feedback.
All reactions