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

<sl-input> does not submit the form when hitting the "Enter" key. #700

Closed
KonnorRogers opened this issue Feb 28, 2022 · 4 comments
Closed
Assignees
Labels
bug Things that aren't working right in the library.

Comments

@KonnorRogers
Copy link
Collaborator

Describe the bug

If you hit the enter key inside of an sl-input it should submit the form just like a native <input> tag.

@KonnorRogers KonnorRogers added the bug Things that aren't working right in the library. label Feb 28, 2022
@claviska
Copy link
Member

Test case: https://jsfiddle.net/2gs60kod/

Note the console when you hit Enter inside the input.

@claviska claviska changed the title [BUG]: <sl-input> does not submit the form when hitting the "Enter" key. <sl-input> does not submit the form when hitting the "Enter" key. Mar 1, 2022
@bobmanc
Copy link

bobmanc commented Mar 8, 2022

Still doesn't work for me. Try putting the cursor in the name field on the first form here https://shoelace.style/getting-started/form-controls and hitting enter. Nothing happens.

@bunesk
Copy link
Contributor

bunesk commented Mar 8, 2022

@bobmanc This bugfix isn't released yet. It will be available with the release. You can see the current state of the next version here: https://next.shoelace.style/getting-started/form-controls
It works for me there.

@bobmanc
Copy link

bobmanc commented Mar 8, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

No branches or pull requests

4 participants