You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/1.guide/16.hub.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,7 +214,7 @@ ctx.docks.register({
214
214
})
215
215
```
216
216
217
-
Group and members stay independent top-level entries in `devframe:docks`; `defaultChildId`opens on activation. Grouping affects the dock rail, not iframes — to share **one** soft-navigated iframe, give docks a shared `frameId` and mark the anchor with `subTabs` ([Shared-iframe soft navigation](/guide/client-context#shared-iframe-soft-navigation)).
217
+
Group and members stay independent top-level entries in `devframe:docks`. Activating the group reopens the member last opened in it (remembered per tab), and `defaultChildId`before any member has been opened. Grouping affects the dock rail, not iframes — to share **one** soft-navigated iframe, give docks a shared `frameId` and mark the anchor with `subTabs` ([Shared-iframe soft navigation](/guide/client-context#shared-iframe-soft-navigation)).
Copy file name to clipboardExpand all lines: packages/hub-ui/src/client/components/dock/DockGroupButton.stories.ts
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ const meta = {
20
20
parameters: {
21
21
docs: {
22
22
description: {
23
-
component: 'The dock-bar button representing a group. Click behaviour depends on the group: a group with `defaultChildId` opens that member directly, otherwise it reveals a popover of members. `FloatingElements` is mounted alongside so the popover renders.',
23
+
component: 'The dock-bar button representing a group. Clicking opens the member last opened in the group (remembered per tab), then the group\'s `defaultChildId`; with neither it reveals a popover of members. `FloatingElements` is mounted alongside so the popover renders.',
24
24
},
25
25
},
26
26
},
@@ -30,8 +30,9 @@ export default meta
30
30
typeStory=StoryObj
31
31
32
32
/**
33
-
* A popover-only group (no `defaultChildId`): clicking reveals the member
34
-
* popover.
33
+
* A popover-only group (no `defaultChildId`): the first click reveals the
34
+
* member popover. Picking a member records it as the group's last-opened
35
+
* child, so later clicks reopen it directly.
35
36
*/
36
37
exportconstPopoverOnly: Story={
37
38
render: ()=>({
@@ -53,7 +54,8 @@ export const PopoverOnly: Story = {
53
54
54
55
/**
55
56
* A group with a `defaultChildId`: clicking opens that member straight away
56
-
* instead of showing the popover.
57
+
* instead of showing the popover — until another member becomes the group's
0 commit comments