Skip to content

Commit 4ea64b3

Browse files
fix(docsearch): pass autoFocus prop to autocomplete for mobiles
1 parent f75e1cc commit 4ea64b3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/SearchBox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export function SearchBox(props: SearchBoxProps) {
6060
{...props.getInputProps({
6161
inputElement: props.inputRef.current!,
6262
type: 'search',
63+
autoFocus: props.autoFocus,
6364
maxLength: MAX_QUERY_SIZE,
6465
})}
6566
/>

0 commit comments

Comments
 (0)