Skip to content

Commit

Permalink
Merge pull request #29455 from storybookjs/close-story-status-menu-on…
Browse files Browse the repository at this point in the history
…-select

Core: Close story status menu when selecting an item
  • Loading branch information
valentinpalkovic authored Oct 28, 2024
2 parents 0cf4576 + 05821e7 commit 5b7713f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/core/src/manager/components/sidebar/Tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,10 @@ const Node = React.memo<NodeProps>(function Node({
{icon ? (
<WithTooltip
closeOnOutsideClick
closeOnTriggerHidden
onClick={(event) => event.stopPropagation()}
placement="bottom"
tooltip={() => (
tooltip={({ onHide }) => (
<TooltipLinkList
links={Object.entries(status || {})
.sort(
Expand All @@ -234,6 +235,7 @@ const Node = React.memo<NodeProps>(function Node({
onClick: () => {
onSelectStoryId(item.id);
value.onClick?.();
onHide();
},
}))}
/>
Expand Down

0 comments on commit 5b7713f

Please sign in to comment.