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

fix(search bar): enable search with input from virtual keyboard #1921

Merged
merged 6 commits into from
Jun 26, 2024

Conversation

yonadavGit
Copy link
Contributor

@yonadavGit yonadavGit commented Jun 10, 2024

This PR fixes synchronicity between virtual keyboard and search bar

@yonadavGit yonadavGit requested a review from nsantacruz June 10, 2024 12:15
setSearchFocused, searchFocused,
submitSearch, redirectToObject}) => {

const getInputValue = () =>{
return otherDownShiftProps.value || document.getElementsByClassName('keyboardInput')[0].value;
Copy link
Contributor

Choose a reason for hiding this comment

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

this function should use getVirtualKeyboardInputValue()

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, this is very dangerous since you're getting the first instance of a CSS class. If this class is used by some other element this could break. Can you come up with a more specific CSS selector?

@nsantacruz nsantacruz merged commit 18e83d7 into master Jun 26, 2024
13 of 15 checks passed
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.

2 participants