Skip to content

Commit

Permalink
fix(v3): pass initialQuery (#1051)
Browse files Browse the repository at this point in the history
shortcuts authored Sep 30, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
Original file line number Diff line number Diff line change
@@ -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(() => {

0 comments on commit 6e194c7

Please sign in to comment.