fix: prevent double context menu on recent files right-click

stopPropagation prevents the event from bubbling to the upload-view
handler which was showing a second context menu.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Administrator 2026-03-11 13:46:54 +01:00
parent 25a6b77650
commit e389b625d6

View File

@ -2135,6 +2135,7 @@ function setupListeners() {
const tr = e.target.closest('.recent-file-row'); const tr = e.target.closest('.recent-file-row');
if (!tr) return; if (!tr) return;
e.preventDefault(); e.preventDefault();
e.stopPropagation();
const id = parseInt(tr.dataset.order, 10); const id = parseInt(tr.dataset.order, 10);
if (!selectedRecentIds.has(id)) { if (!selectedRecentIds.has(id)) {
selectedRecentIds.clear(); selectedRecentIds.clear();