From 97ba1505ab80cf0a47eb61acd89f212ac8363b12 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Mon, 3 Jan 2022 09:39:27 +0000 Subject: [PATCH] Fix editing bug (#480) --- packages/tldraw/src/state/tools/SelectTool/SelectTool.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/tldraw/src/state/tools/SelectTool/SelectTool.ts b/packages/tldraw/src/state/tools/SelectTool/SelectTool.ts index dc4dcca89..4d4894411 100644 --- a/packages/tldraw/src/state/tools/SelectTool/SelectTool.ts +++ b/packages/tldraw/src/state/tools/SelectTool/SelectTool.ts @@ -195,7 +195,11 @@ export class SelectTool extends BaseTool { break } case 'Tab': { - if (this.status === Status.Idle && this.app.selectedIds.length === 1) { + if ( + !this.app.pageState.editingId && + this.status === Status.Idle && + this.app.selectedIds.length === 1 + ) { const [selectedId] = this.app.selectedIds const clonedShape = this.getShapeClone(selectedId, 'right')