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

[fields] Handle form submit on Enter click with "v7" fields #13066

Open
LukasTy opened this issue May 9, 2024 · 0 comments
Open

[fields] Handle form submit on Enter click with "v7" fields #13066

LukasTy opened this issue May 9, 2024 · 0 comments
Labels
component: pickers This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature feature: Keyboard editing Related to the pickers keyboard edition

Comments

@LukasTy
Copy link
Member

LukasTy commented May 9, 2024

Created from #12964 (comment)

The accessible DOM structure fields do not allow form submitting when Enter is clicked on a focused input.

A proposed solution is to rely on form.requestSubmit(), but it has its drawbacks (which are discussed within the linked issue).

An alternative solution is to explore if the option of aligning the approach with native date input (it doesn't use contentEditable elements, but possibly handles all keyboard events explicitly) would circumvent this issue.

Search keywords:

@LukasTy LukasTy added component: pickers This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature feature: Keyboard editing Related to the pickers keyboard edition labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature feature: Keyboard editing Related to the pickers keyboard edition
Projects
None yet
Development

No branches or pull requests

1 participant