mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 10:15:37 +03:00
Reset search query if really empty
This commit is contained in:
parent
768477ea6c
commit
b00033129f
1 changed files with 1 additions and 1 deletions
|
@ -168,8 +168,8 @@ function Search({ columnMode, ...props }) {
|
|||
});
|
||||
|
||||
useEffect(() => {
|
||||
searchFormRef.current?.setValue?.(q || '');
|
||||
if (q) {
|
||||
searchFormRef.current?.setValue?.(q);
|
||||
loadResults(true);
|
||||
} else {
|
||||
searchFormRef.current?.focus?.();
|
||||
|
|
Loading…
Reference in a new issue