Sometimes autofocus ain't working

pull/54/head
Lim Chee Aun 2023-02-18 01:27:59 +08:00
rodzic 523cb09912
commit 07d1734720
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -27,6 +27,7 @@ function Search() {
const [accountResults, setAccountResults] = useState([]);
const [hashtagResults, setHashtagResults] = useState([]);
useEffect(() => {
searchFieldRef.current?.focus?.();
if (q) {
searchFieldRef.current.value = q;