mirror of
https://github.com/FoxxMD/multi-scrobbler.git
synced 2026-10-19 15:26:33 +00:00
feat(ui): default to search context mode
This commit is contained in:
parent
26c44122b6
commit
9dcf03c332
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ export const MetadataSearchCombobox = <T extends MetadataSearchResult>(props: Me
|
|||
// a ref, not state: combobox captures onInteractOutside when the popup opens so state read there is stale
|
||||
const rawInput = useRef<string | undefined>(initialInput === '' ? undefined : initialInput);
|
||||
|
||||
const [contextMode, setContextMode] = useState<boolean>(props.searchContext ?? false);
|
||||
const [contextMode, setContextMode] = useState<boolean>(props.searchContext ?? true);
|
||||
const [open, setOpen] = useState<boolean>(false);
|
||||
// typing would otherwise search on every keystroke
|
||||
// flush on unmount: a parent may remount this after a selection and still wants the search for the selected text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue