From 94f6d2347b31955220e1062f568e5ee46cc28f6e Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 3 Jan 2022 16:07:04 -0700 Subject: [PATCH] Clearing search manually. --- app/src/components/Common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/components/Common.js b/app/src/components/Common.js index 02e0da02..a25d77ba 100644 --- a/app/src/components/Common.js +++ b/app/src/components/Common.js @@ -508,7 +508,7 @@ export function SearchInput({initValue, onSubmit, size}) { const buttonClick = () => { // Clear the input when the "clear" button is clicked, search again. setValue(''); - onSubmit(value); + onSubmit(''); } // Button is "search" when input is dirty, otherwise it is "clear".