allow search to be auto-focused
This commit is contained in:
parent
db18519c16
commit
3c2880e4ba
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,8 @@ export default function Search({ options }) {
|
|||
autoCapitalize="off"
|
||||
autoCorrect="off"
|
||||
autoComplete="off"
|
||||
// eslint-disable-next-line jsx-a11y/no-autofocus
|
||||
autoFocus={options.focus}
|
||||
/>
|
||||
<button
|
||||
type="submit"
|
||||
|
|
Loading…
Add table
Reference in a new issue