mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 00:38:49 +01:00
Sometimes autofocus ain't working
This commit is contained in:
parent
523cb09912
commit
07d1734720
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ function Search() {
|
|||
const [accountResults, setAccountResults] = useState([]);
|
||||
const [hashtagResults, setHashtagResults] = useState([]);
|
||||
useEffect(() => {
|
||||
searchFieldRef.current?.focus?.();
|
||||
if (q) {
|
||||
searchFieldRef.current.value = q;
|
||||
|
||||
|
|
Loading…
Reference in a new issue