fix(v3): pass initialQuery (#1051)
This commit is contained in:
parent
20f54c968c
commit
6e194c73bf
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ export function DocSearch(props: DocSearchProps) {
|
|||
const searchButtonRef = React.useRef<HTMLButtonElement>(null);
|
||||
const [isOpen, setIsOpen] = React.useState(false);
|
||||
const [initialQuery, setInitialQuery] = React.useState<string | undefined>(
|
||||
undefined
|
||||
props?.initialQuery || undefined
|
||||
);
|
||||
|
||||
const onOpen = React.useCallback(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue