From a0115d88b0417095d5bd2426346af4d0c9360498 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Wed, 24 Mar 2021 03:28:02 +0430 Subject: [PATCH] fix search bugs --- webUI/react/src/screens/SearchSingle.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/webUI/react/src/screens/SearchSingle.tsx b/webUI/react/src/screens/SearchSingle.tsx index b56544b..c2d6bdc 100644 --- a/webUI/react/src/screens/SearchSingle.tsx +++ b/webUI/react/src/screens/SearchSingle.tsx @@ -50,6 +50,7 @@ export default function SearchSingle() { } else { setError(false); setSearchTerm(value); + setMangas([]); setMessage(''); } } @@ -86,12 +87,18 @@ export default function SearchSingle() { return ( <> -
- +
+ e.key === 'Enter' && processInput()} + /> - +
{mangaGrid} );