Skip to content

Commit 1425bc7

Browse files
committed
Fixes graph hover hiding on context menu
1 parent 5ab93f9 commit 1425bc7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/webviews/apps/plus/graph/graph-wrapper/graph-wrapper.react.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ export function GraphWrapperReact(initProps: GraphWrapperInitProps) {
475475

476476
const handleRowContextMenu = (_event: React.MouseEvent<any>, graphZoneType: GraphZoneType, graphRow: GraphRow) => {
477477
if (graphZoneType === refZone) return;
478-
// initProps.onRowContextMenu?.({ graphZoneType: graphZoneType, graphRow: graphRow });
478+
479479
// If the row is in the current selection, use the typed selection context, otherwise clear it
480480
const newSelectionContext = selectionContexts?.selectedShas.has(graphRow.sha)
481481
? selectionContexts.contexts.get(graphRow.type)
@@ -490,6 +490,8 @@ export function GraphWrapperReact(initProps: GraphWrapperInitProps) {
490490
...newSelectionContext,
491491
},
492492
});
493+
494+
initProps.onRowContextMenu?.({ graphZoneType: graphZoneType, graphRow: graphRow });
493495
};
494496

495497
return (

0 commit comments

Comments
 (0)