mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-29 04:38:55 +03:00
Try autofocus on search field
I commented this out for some reason that I forgot
This commit is contained in:
parent
bb1850a330
commit
3511ba760a
1 changed files with 1 additions and 3 deletions
|
@ -125,13 +125,11 @@ function Search(props) {
|
|||
}
|
||||
|
||||
useEffect(() => {
|
||||
// searchFieldRef.current?.focus?.();
|
||||
// searchFormRef.current?.focus?.();
|
||||
if (q) {
|
||||
// searchFieldRef.current.value = q;
|
||||
searchFormRef.current?.setValue?.(q);
|
||||
loadResults(true);
|
||||
}
|
||||
searchFormRef.current?.focus?.();
|
||||
}, [q, type, instance]);
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue