Skip to content

Commit

Permalink
fix(v3): pass initialQuery (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Sep 30, 2021
1 parent 20f54c9 commit 6e194c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docsearch-react/src/DocSearch.tsx
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 6e194c7

Please sign in to comment.