fix(ui): show boards panel when opening board search

This commit is contained in:
psychedelicious 2024-07-24 13:27:06 +10:00
parent cb61ef9bb1
commit 2503dca813

View File

@ -43,7 +43,8 @@ const ImageGalleryContent = () => {
dispatch(boardSearchTextChanged('')); dispatch(boardSearchTextChanged(''));
} }
boardSearchDisclosure.onToggle(); boardSearchDisclosure.onToggle();
}, [boardSearchText, dispatch, boardSearchDisclosure]); boardsListPanel.expand();
}, [boardSearchText.length, boardSearchDisclosure, boardsListPanel, dispatch]);
const handleToggleBoardPanel = useCallback(() => { const handleToggleBoardPanel = useCallback(() => {
if (boardSearchText.length) { if (boardSearchText.length) {