fix(ui): close boards search when toggling panel

This commit is contained in:
psychedelicious
2024-07-24 13:28:11 +10:00
parent 2503dca813
commit 17493f4ae0

View File

@ -50,9 +50,9 @@ const ImageGalleryContent = () => {
if (boardSearchText.length) { if (boardSearchText.length) {
dispatch(boardSearchTextChanged('')); dispatch(boardSearchTextChanged(''));
} }
boardSearchDisclosure.onClose();
boardsListPanel.toggle(); boardsListPanel.toggle();
}, [boardSearchText, dispatch, boardsListPanel]); }, [boardSearchText.length, boardSearchDisclosure, boardsListPanel, dispatch]);
return ( return (
<Flex position="relative" flexDirection="column" h="full" w="full" pt={2}> <Flex position="relative" flexDirection="column" h="full" w="full" pt={2}>