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

form support #139

Open
ailisp opened this issue Oct 13, 2023 · 2 comments
Open

form support #139

ailisp opened this issue Oct 13, 2023 · 2 comments

Comments

@ailisp
Copy link

ailisp commented Oct 13, 2023

I'd like to make a <input> that invoke some function after user press enter. However this doesn't work:
- the onKeydown event handler to the <input> simple got ignored

  • trying to add input to a <form> and add submit event handler doesn't work because form is not available in VM

Is there a way to implement this feature?

@evgenykuzyakov
Copy link
Contributor

Please provide your code/example

@ailisp
Copy link
Author

ailisp commented Oct 17, 2023

It's a typo on my side, I wrote onKeydown. Should be onKeyDown 😂. Can form be supported? If so it would be easier I can just handle submit, instead of handle onKeyDown and check if the key is "Enter".

@ailisp ailisp changed the title onKeydown event on input and form submit doesn't work form suppost Oct 17, 2023
@ailisp ailisp changed the title form suppost form support Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants