1
0
Fork 0

fix(docsearch): pass autoFocus prop to autocomplete for mobiles

This commit is contained in:
François Chalifour 2020-07-30 12:05:18 +02:00
parent f75e1cc7a1
commit 4ea64b31aa

View file

@ -60,6 +60,7 @@ export function SearchBox(props: SearchBoxProps) {
{...props.getInputProps({
inputElement: props.inputRef.current!,
type: 'search',
autoFocus: props.autoFocus,
maxLength: MAX_QUERY_SIZE,
})}
/>