From c4a53e4e478095da5650435db496b1cf4f5ac8c0 Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Tue, 12 Nov 2024 13:28:28 -0800 Subject: [PATCH] fix(SILVA-566): close advanced search when user click on search (#459) --- .../SilvicultureSearch/Openings/OpeningsSearchBar/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/SilvicultureSearch/Openings/OpeningsSearchBar/index.tsx b/frontend/src/components/SilvicultureSearch/Openings/OpeningsSearchBar/index.tsx index 173840aa..ad4fb002 100644 --- a/frontend/src/components/SilvicultureSearch/Openings/OpeningsSearchBar/index.tsx +++ b/frontend/src/components/SilvicultureSearch/Openings/OpeningsSearchBar/index.tsx @@ -31,6 +31,7 @@ const OpeningsSearchBar: React.FC = ({ const handleSearchClick = () => { onSearchClick(); + setIsOpen(false); }; const handleInputChange = (e: React.ChangeEvent) => {