Skip to content

Commit

Permalink
Close story status menu when selecting an item
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Oct 27, 2024
1 parent 6098c01 commit dc2118e
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 @@ -210,9 +210,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 @@ -233,6 +234,7 @@ const Node = React.memo<NodeProps>(function Node({
onClick: () => {
onSelectStoryId(item.id);
value.onClick?.();
onHide();
},
}))}
/>
Expand Down

0 comments on commit dc2118e

Please sign in to comment.