Close creation menu when expanding space panel via expand hierarchy
This commit is contained in:
parent
7123abc122
commit
4be8bbeef9
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue