feat(ui): default to search context mode

This commit is contained in:
FoxxMD 2026-10-09 16:38:38 +00:00
parent 26c44122b6
commit 9dcf03c332

View file

@ -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