fix(docsearch): pass autoFocus prop to autocomplete for mobiles
This commit is contained in:
parent
f75e1cc7a1
commit
4ea64b31aa
1 changed files with 1 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ export function SearchBox(props: SearchBoxProps) {
|
|||
{...props.getInputProps({
|
||||
inputElement: props.inputRef.current!,
|
||||
type: 'search',
|
||||
autoFocus: props.autoFocus,
|
||||
maxLength: MAX_QUERY_SIZE,
|
||||
})}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue