mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-24 22:55:19 +01:00
allow search to be auto-focused
This commit is contained in:
parent
db18519c16
commit
3c2880e4ba
@ -69,6 +69,8 @@ export default function Search({ options }) {
|
|||||||
autoCapitalize="off"
|
autoCapitalize="off"
|
||||||
autoCorrect="off"
|
autoCorrect="off"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
// eslint-disable-next-line jsx-a11y/no-autofocus
|
||||||
|
autoFocus={options.focus}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user