Handling the "Enter Key" from an rx.input Component #2962
Closed
ESchwaa919
announced in
Q&A
Replies: 1 comment
-
Solved thanks to @Lendemor in Discord. Solution involves wrapping the inputs into a form. Here is my final working code:
|
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
-
I'm trying to figure out how to observe a press of the "Enter" key when someone is typing in the rx.input component so that they don't have to click on the submit button.
What I'm observing the component seems to handle either the "onChange" event or "onKeyPress" event, but not both. Does anyone have a solution for how to solve this? Feels like it would be a good feature to just enable via a property.
Beta Was this translation helpful? Give feedback.
All reactions