Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1704 | set focus on 1st option on moving fr…
Browse files Browse the repository at this point in the history
…om nested to global search
  • Loading branch information
snyaggarwal committed Jan 19, 2024
1 parent 3138b9a commit 85fc764
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/search/SearchInputDrawer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ const SearchInputDrawer = ({open, onClose, input, initiateSearch, inputProps}) =
inputRef.current.blur()
if(focus == 1)
inputProps.handleKeyPress(event)
else
else {
setFocus(1)
initiateSearch(event, true)
}
}
else if(event.key === 'ArrowDown') {
event.preventDefault()
Expand Down

0 comments on commit 85fc764

Please sign in to comment.