fix(downloads): keep the column menu open on right click

Stop the header context event before it reaches the newly mounted outside-click listener, preventing the column menu from closing in the same native event.
This commit is contained in:
Sucukdeluxe
2026-08-21 00:09:59 +02:00
parent 4f7b8d31ef
commit 9e873fa250
2 changed files with 23 additions and 1 deletions
@@ -549,7 +549,7 @@ export function DownloadsTableHeader({ actions, columnOrder, gridTemplate, sortC
className="downloads-column-header"
data-download-column={column}
key={column}
onContextMenu={(event) => { event.preventDefault(); actions.onColumnContextMenu(column, event.clientX, event.clientY); }}
onContextMenu={(event) => { event.preventDefault(); event.stopPropagation(); actions.onColumnContextMenu(column, event.clientX, event.clientY); }}
onPointerCancel={(event) => actions.onColumnPointerCancel(column, event)}
onPointerDown={(event) => {
if (event.button !== 0 || !event.isPrimary) return;