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

feat(Search): allow tracking Enter key press #2600

Merged

Conversation

YossiSaadi
Copy link
Contributor

@YossiSaadi YossiSaadi requested a review from a team as a code owner November 20, 2024 10:35
@@ -35,6 +35,7 @@ const Search = forwardRef(
onFocus,
onBlur,
onClear,
onEnterKey,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why aren't we just exposing onKeyDown?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually thought about doing it, but maybe we should make this more straightforward for cases like Enter, which is the one the team currently needs. I can't think of another key that someone might want to check for stuff like Search field

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shlomitc after reconsideration, went with your suggestion at the end, thanks!

@YossiSaadi YossiSaadi requested a review from a team November 21, 2024 11:56
leave the handling for the consumer
@YossiSaadi YossiSaadi force-pushed the feat/yossi/search-allow-tracking-onenterkey-event-7890250116 branch from 0aa8e80 to 626211e Compare November 21, 2024 13:00
@YossiSaadi YossiSaadi merged commit 01a677a into master Nov 21, 2024
10 of 11 checks passed
@YossiSaadi YossiSaadi deleted the feat/yossi/search-allow-tracking-onenterkey-event-7890250116 branch November 21, 2024 13:29
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

Successfully merging this pull request may close these issues.

3 participants