[Bug]: Form
submit missing input in request.formData()
when submitting button is rendered outside form
#1720
Closed
1 of 12 tasks
Labels
bug
Something isn't working
Which Remix packages are impacted?
remix
(Remix core)create-remix
@remix-run/architect
@remix-run/cloudflare-workers
@remix-run/dev
@remix-run/express
@remix-run/netlify
@remix-run/node
@remix-run/react
@remix-run/serve
@remix-run/server-runtime
@remix-run/vercel
What version of Remix are you using?
1.1.3
What version of Node are you using? Minimum supported version is 14.
14.16.0
Steps to Reproduce
Render a button outside
Form
and target theForm
via theform
attribute. Click the button to submit form.https://stackblitz.com/edit/node-trfzzj?file=app/routes/form.tsx
https://stackblitz.com/edit/node-trfzzj?file=app/routes/remix-form.tsx
Not clear if this is by design, but using a regular html form produces the expected behavior.
Expected Behavior
await request.formData().get('_action')
should equal'someAction'
.Actual Behavior
await request.formData().get('_action')
equalsnull
.The text was updated successfully, but these errors were encountered: