fix(ui): prevent copy buttons from stealing focus from prompt input (#10084)

This commit is contained in:
Alex Yaroshuk
2026-01-23 02:37:13 +08:00
committed by GitHub
parent 32f72f49a8
commit 3c7d5174b3
2 changed files with 3 additions and 0 deletions

View File

@@ -626,6 +626,7 @@ export function SessionTurn(
<IconButton
icon={copied() ? "check" : "copy"}
variant="secondary"
onMouseDown={(e) => e.preventDefault()}
onClick={(event) => {
event.stopPropagation()
handleCopy()