kopia lustrzana https://github.com/cheeaun/phanpy
Sometimes autofocus ain't working
rodzic
523cb09912
commit
07d1734720
|
@ -27,6 +27,7 @@ function Search() {
|
|||
const [accountResults, setAccountResults] = useState([]);
|
||||
const [hashtagResults, setHashtagResults] = useState([]);
|
||||
useEffect(() => {
|
||||
searchFieldRef.current?.focus?.();
|
||||
if (q) {
|
||||
searchFieldRef.current.value = q;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue