mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Adding openMenu method on focus of the Search input Field
This commit is contained in:
parent
816db165c7
commit
f1e7a2ed87
1 changed files with 7 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ export function LibrarySearchBar(props: LibrarySearchBarProps): JSX.Element {
|
|||
highlightedIndex,
|
||||
inputValue,
|
||||
clearSelection,
|
||||
openMenu,
|
||||
}) => (
|
||||
<VStack
|
||||
alignment="start"
|
||||
|
|
@ -85,6 +86,12 @@ export function LibrarySearchBar(props: LibrarySearchBarProps): JSX.Element {
|
|||
tabIndex={0}
|
||||
value={inputValue}
|
||||
placeholder="Search"
|
||||
onFocus={(event: any) => {
|
||||
event.preventDefault()
|
||||
openMenu()
|
||||
//props.applySearchQuery('')
|
||||
// inputRef.current?.blur()
|
||||
}}
|
||||
onChange={(event: any) => {
|
||||
event.preventDefault()
|
||||
}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue