From 17493f4ae0d24b30cbf5118c64957b435482c4f4 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 24 Jul 2024 13:28:11 +1000 Subject: [PATCH] fix(ui): close boards search when toggling panel --- .../src/features/gallery/components/ImageGalleryContent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx b/invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx index 61fa9fb267..a42410b885 100644 --- a/invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx @@ -50,9 +50,9 @@ const ImageGalleryContent = () => { if (boardSearchText.length) { dispatch(boardSearchTextChanged('')); } - + boardSearchDisclosure.onClose(); boardsListPanel.toggle(); - }, [boardSearchText, dispatch, boardsListPanel]); + }, [boardSearchText.length, boardSearchDisclosure, boardsListPanel, dispatch]); return (