Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
fix(docsearch): pass autoFocus prop to autocomplete for mobiles
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Jul 30, 2020
1 parent 5bc08ca commit 8f4d3fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/docsearch-react/src/SearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export function SearchBox(props: SearchBoxProps) {
{...props.getInputProps({
inputElement: props.inputRef.current!,
type: 'search',
autoFocus: props.autoFocus,
maxLength: MAX_QUERY_SIZE,
})}
/>
Expand Down

0 comments on commit 8f4d3fb

Please sign in to comment.