Reset search query if really empty

pull/360/head 2023.12.22.1e21f51
Lim Chee Aun 2023-12-22 23:03:05 +08:00
rodzic 768477ea6c
commit b00033129f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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?.();