Skip to content

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 f75e1cc commit 4ea64b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 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 4ea64b3

Please sign in to comment.