A type-safe form validation library utilizing web fundamentals to progressively enhance HTML Forms with full support for server frameworks like Remix and Next.js.
When I activate the resetForm and follow the tips from the Conform Remix documentation, I have an unexpected behaviour when I use the keyboard to submit the form.
The form is not reset when I submit the form from the "Enter" key on my keyboard from a field. But when I click on the submit button, the form is reset as expected.
Additional context
I don't understand why when I use the keyboard to submit the form on Chrome, there is second POST requests?
Describe the bug and the expected behavior
When I activate the
resetForm
and follow the tips from the Conform Remix documentation, I have an unexpected behaviour when I use the keyboard to submit the form.Conform version
v1.1.5
Steps to Reproduce the Bug or Issue
No problem on Safari, only on Chrome...
?_data
is missing), that is not normal.resetForm: false
, and retry the same test.What browsers are you seeing the problem on?
Chrome
Screenshots or Videos
As you can see here:
https://github.com/edmundhung/conform/assets/13423202/0030234c-f253-475c-919e-d3ca8c50f5e1
The form is not reset when I submit the form from the "Enter" key on my keyboard from a field. But when I click on the submit button, the form is reset as expected.
Additional context
I don't understand why when I use the keyboard to submit the form on Chrome, there is second POST requests?