Skip to main content
← Back to list
01Issue
BugShippedSwamp ClubPublic
Assigneesstack72

Relationships

#3476 CopyCommand's clipboard fallback selects the wrong command on pages with several copies

Opened by stack72 · 10/14/2026· Shipped 10/14/2026

islands/CopyCommand.tsx hardcodes id="copy-command-text" on every instance, and its clipboard fallback (used when navigator.clipboard.writeText rejects, e.g. on an insecure context or a denied permission) selects document.getElementById("copy-command-text"). Pages render several CopyCommands (routes/cve/dirtyfrag.tsx has five, mini-shai-hulud.tsx two), so the IDs duplicate and the fallback on any copy button selects the first command on the page, not the one clicked.

Fix: select the instance's own element through a ref, as islands/InstallCopyCommand.tsx does.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 4 MOREVERIFICATION_FAILED+ 2 MORESESSION_SUMMARIZED

Shipped

10/14/2026, 8:51:40 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack7210/14/2026, 8:17:34 PM
Editable. Press Enter to edit.

system commented 10/14/2026, 8:15:08 PM

Classified automatically when this issue was filed.

  • Source: Swamp Club

If you feel this classification is incorrect, add a ripple to tell us so.

Sign in to post a ripple.