Disable search autofocus

This commit is contained in:
Piotr Rogowski 2022-10-14 14:26:14 +02:00
parent d0bc89cc22
commit c5ed2cabcf
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
1 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,7 @@ const Hub = () => {
useEffect(() => {
loadData();
searchRef.current?.focus();
// searchRef.current?.focus(); // autofocus
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
@ -165,7 +165,8 @@ const Hub = () => {
<div className="large-container">
<Title>Hub</Title>
<Input
tabIndex={0}
// eslint-disable-next-line jsx-a11y/tabindex-no-positive
tabIndex={1}
ref={searchRef}
style={{ marginBottom: 10, height: 40 }}
placeholder="Search..."