Skip to content

Commit

Permalink
Reset search query if really empty
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Dec 22, 2023
1 parent 768477e commit b000331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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?.();
Expand Down

0 comments on commit b000331

Please sign in to comment.