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:
parent
25a6b77650
commit
e389b625d6
@ -2135,6 +2135,7 @@ function setupListeners() {
|
||||
const tr = e.target.closest('.recent-file-row');
|
||||
if (!tr) return;
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
const id = parseInt(tr.dataset.order, 10);
|
||||
if (!selectedRecentIds.has(id)) {
|
||||
selectedRecentIds.clear();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user