From bcc5c017b38c62cdf77ff88d98dad87aaa0dbf52 Mon Sep 17 00:00:00 2001 From: nzaytsev Date: Mon, 23 Dec 2024 15:56:30 +0700 Subject: [PATCH] Hides graph hover on context menu --- CHANGELOG.md | 4 ++++ src/webviews/apps/plus/graph/GraphWrapper.tsx | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55170f518fd09..b54c2d2a961d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - Adds a _Contributors_ section to comparison results in the views +### Fixed + +- Fixes [#3888](https://github.com/gitkraken/vscode-gitlens/issues/#3888) - Graph hover should disappear when right-clicking a row + ## [16.1.1] - 2024-12-20 ### Added diff --git a/src/webviews/apps/plus/graph/GraphWrapper.tsx b/src/webviews/apps/plus/graph/GraphWrapper.tsx index 1431f6d7acb95..849b205d6f600 100644 --- a/src/webviews/apps/plus/graph/GraphWrapper.tsx +++ b/src/webviews/apps/plus/graph/GraphWrapper.tsx @@ -899,6 +899,7 @@ export function GraphWrapper({ const handleRowContextMenu = (_event: React.MouseEvent, graphZoneType: GraphZoneType, graphRow: GraphRow) => { if (graphZoneType === refZone) return; + hover.current?.hide(); // If the row is in the current selection, use the typed selection context, otherwise clear it const newSelectionContext = selectionContexts?.selectedShas.has(graphRow.sha)