Submit Button
#5217
Replies: 2 comments 5 replies
-
Not sure if it's due to Angular framework or not but it works pretty well for me: Lit Playground. You can press Enter on the normal |
Beta Was this translation helpful? Give feedback.
5 replies
-
I have a similar problem using Elm. My code reads
and pressing enter in the text field does not cause a submit |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
I've been doing some tests with the web components, and looking into the button components, I saw that the
abstract class Button
is extending thebuttonBaseClass
and implementingFormSubmitter
, and by default, the button is a 'submit'. type fromFormSubmitterType
.If by default, all the buttons are
submit
type, would that mean that if I am in a form and pressenter
, the form should be submitted, right?I am using an Angular v17 project and importing the web components there, if I have a simple button type submit, the form works just fine, but if I add the web-component button, it does not submit the form.
I have the imports necessary for the web-component, and it shows fine in the page, but it does not submit.
this is my HTML:
Am I doing something wrong? (I hope so)
Beta Was this translation helpful? Give feedback.
All reactions