Closed soulr344 closed 5 months ago
Seems to work as long as a file is selected in the dropzone. π€
Edit: Not actually working, but the behavior is different. Hitting enter in the text input causes the dropzone to submit.
https://github.com/pingdotgg/uploadthing/assets/11494384/b173564f-96e6-49f8-8329-4388a7f758be
Yeah, it seems like the dropzone is capturing presses of enter
so they don't make it to your form. Looking into this more now
Provide environment information
Describe the bug
When you have a UploadDropzone wrapped in a form, and then press enter on a input in the form, the form is expected to submit, but with a UploadDropzone inside, it doesn't submit.
Repo with reproduction: https://github.com/soulr344/uploadthing-bug-form Live reproduction: https://uploadthing-bug-form.vercel.app/bug
Link to reproduction
https://uploadthing-bug-form.vercel.app/bug
To reproduce
Open the link above, you should have a form in there. Type something in the demo input, and press enter. You should get a message saying the form is submitted at the end of the form. Then, click on reset status, tick the "Enable Uploadthing Field", type something on the Demo input and press enter. It doesnt submit anymore.
Additional information
No response
π¨βπ§βπ¦ Contributing
Code of Conduct