Skip to content

Keypress Handler #973

Answered by Dooffy
Dooffy asked this question in Q&A
Discussion options

You must be logged in to vote

Solution:

<Box onKeyPress={onSubmitHandler}>
    <Input ... />
</Box>

The solution was shared with me to use Box key press handler. This one was hard to guess 😄

The original issue was with a form submit by "Enter" like Google search:

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Dooffy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants