Close creation menu when expanding space panel via expand hierarchy

This commit is contained in:
Michael Telatynski 2021-05-24 21:17:30 +01:00
parent 7123abc122
commit 4be8bbeef9

View file

@ -221,14 +221,20 @@ const SpacePanel = () => {
space={s}
activeSpaces={activeSpaces}
isPanelCollapsed={isPanelCollapsed}
onExpand={() => setPanelCollapsed(false)}
onExpand={() => {
closeMenu();
setPanelCollapsed(false);
}}
/>) }
{ spaces.map(s => <SpaceItem
key={s.roomId}
space={s}
activeSpaces={activeSpaces}
isPanelCollapsed={isPanelCollapsed}
onExpand={() => setPanelCollapsed(false)}
onExpand={() => {
closeMenu();
setPanelCollapsed(false);
}}
/>) }
</div>
<SpaceButton