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');
|
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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user