From b00033129f76f774f4d1a52fc268f4f9865dc3d1 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Fri, 22 Dec 2023 23:03:05 +0800 Subject: [PATCH] Reset search query if really empty --- src/pages/search.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/search.jsx b/src/pages/search.jsx index e7726ede..e55440ad 100644 --- a/src/pages/search.jsx +++ b/src/pages/search.jsx @@ -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?.();