@@ -7,7 +7,7 @@ import { useEventListener } from '@vueuse/core'
77import { computed , h , onMounted , ref , useTemplateRef } from ' vue'
88import { getEntryGroup } from ' ../../state/dock-settings'
99import { sharedStateToRef } from ' ../../state/docks'
10- import { setEdgePositionDropdown , setFloatingTooltip , useEdgePositionDropdown } from ' ../../state/floating-tooltip'
10+ import { setEdgePositionDropdown , setFloatingTooltip , useDocksGroupPanel , useEdgePositionDropdown } from ' ../../state/floating-tooltip'
1111import { useIframePanes } from ' ../../utils/useIframePanes'
1212import BrandMark from ' ../icons/BrandMark.vue'
1313import ViewEntry from ' ../views/ViewEntry.vue'
@@ -60,13 +60,19 @@ function bringUp() {
6060 }, + store .inactiveTimeout || 0 )
6161}
6262
63+ // An open group menu popover anchors to a toolbar button — collapsing the
64+ // toolbar out from under it would leave the menu floating, detached from it.
65+ const docksGroupPanel = useDocksGroupPanel ()
66+
6367const isCollapsed = computed (() => {
6468 if (! settings .value .autoCollapseEdgeToolbar )
6569 return false
6670 if (store .inactiveTimeout < 0 )
6771 return false
6872 if (context .panel .isDragging )
6973 return false
74+ if (docksGroupPanel .value )
75+ return false
7076 if (hasPanelContent .value )
7177 return false
7278 if (store .inactiveTimeout === 0 )
0 commit comments