diff --git a/src/SearchBox.tsx b/src/SearchBox.tsx index ecdffc1d..49071cb5 100644 --- a/src/SearchBox.tsx +++ b/src/SearchBox.tsx @@ -60,6 +60,7 @@ export function SearchBox(props: SearchBoxProps) { {...props.getInputProps({ inputElement: props.inputRef.current!, type: 'search', + autoFocus: props.autoFocus, maxLength: MAX_QUERY_SIZE, })} />