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

[Bug]: Submit a form with ENTER on a textfield #130

Open
taorepoara opened this issue Feb 3, 2023 · 5 comments
Open

[Bug]: Submit a form with ENTER on a textfield #130

taorepoara opened this issue Feb 3, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@taorepoara
Copy link
Member

What happened?

I have made a basic form that contains only one textfield (no submit button).

When I press the Enter key nothing happens. I expected the form to be submitted.

I've tried both onSubmit (on the form) and onSubmitted (on the textfield) but none of them worked.

What browsers are you seeing the problem on?

No response

Version

devtool: v1.0.0-beta.79

Relevant log output

No response

@taorepoara taorepoara added the bug Something isn't working label Feb 3, 2023
@jonas-martinez
Copy link
Contributor

I checked the code in lenra_ui_runner. You are right, if there is no submit button (or actionable), there is no way to submit the Form.

@jonas-martinez
Copy link
Contributor

@taorepoara I'm wondering if the form component is the proper component to use for this case. Just like the HTML Form needs a submit button to function properly.

@taorepoara
Copy link
Member Author

I don't think that the HTML Form needs a button to be submitted.

@taorepoara
Copy link
Member Author

This a normal Flutter comportment. We'll see that later. It sims that it can be handled by setting the textInputAction and listening the onEditingComplete event.

@taorepoara
Copy link
Member Author

It does not work but it's not a big problem

@taorepoara taorepoara transferred this issue from lenra-io/lenra_cli May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🟤 Can wait
Development

No branches or pull requests

3 participants