Skip to content

Commit

Permalink
refactor(search bar): safer query to get the input search element
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadavGit committed Jun 25, 2024
1 parent b2f6f4e commit 0502f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/Autocomplete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const SearchInputBox = ({getInputProps, suggestions, highlightedIndex, hideHebre
return otherDownShiftProps.value || getVirtualKeyboardInputValue();
}
const getVirtualKeyboardInputValue = () =>{
return document.getElementsByClassName('keyboardInput')[0].value;
return document.querySelector('#searchBox .keyboardInput').value;
}
useEffect(() => {
showVirtualKeyboardIcon(false); // Initially hide the virtual keyboard icon
Expand Down

0 comments on commit 0502f39

Please sign in to comment.