From 676e1c4c6702e409946a8b8e096792e35ea1fe56 Mon Sep 17 00:00:00 2001 From: liangxu Date: Thu, 9 Jul 2026 12:26:26 +0800 Subject: [PATCH] fix(canvas): start selection title rename on single click Switch the editable selection title from onDoubleClick to onClick so renaming a node/layer title begins with a single click. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../pages/CanvasWorkspace/canvas/CanvasSelectionFrame/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ui/pages/CanvasWorkspace/canvas/CanvasSelectionFrame/index.tsx b/frontend/src/ui/pages/CanvasWorkspace/canvas/CanvasSelectionFrame/index.tsx index 0bf18fe..3c0b6a1 100644 --- a/frontend/src/ui/pages/CanvasWorkspace/canvas/CanvasSelectionFrame/index.tsx +++ b/frontend/src/ui/pages/CanvasWorkspace/canvas/CanvasSelectionFrame/index.tsx @@ -149,7 +149,7 @@ function EditableSelectionTitle({ aria-label={renameLabel} title={title} onPointerDown={(event) => event.stopPropagation()} - onDoubleClick={(event) => { + onClick={(event) => { event.stopPropagation(); startEditing(); }}