Skip to content

Commit

Permalink
fix: highlight first item by default
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Nov 28, 2020
1 parent e667698 commit 777bc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docsearch-react/src/DocSearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function DocSearchModal({
React.KeyboardEvent
>({
id: 'docsearch',
defaultHighlightedIndex: 0,
defaultSelectedItemId: 0,
placeholder,
openOnFocus: true,
initialState: {
Expand Down

0 comments on commit 777bc8e

Please sign in to comment.