From 6479841deeeb6ccfc3b05520127a473ec7dcd549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Mon, 23 Dec 2024 18:02:52 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=94=99=E8=AF=AF=EF=BC=8C=E6=B3=A8=E5=86=8C=E4=BA=86?= =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E6=8F=92=E4=BB=B6=E5=90=8E=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=E6=96=87=E6=9C=AC=E7=BC=96=E8=BE=91=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E5=BA=94=E5=9C=A8=E5=8E=9F=E6=9C=89=E6=96=87=E6=9C=AC=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E7=B1=BB=E4=B8=AD=E4=BF=9D=E5=AD=98=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=AE=9E=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/core/render/TextEdit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple-mind-map/src/core/render/TextEdit.js b/simple-mind-map/src/core/render/TextEdit.js index 6974522f..ac96a96e 100644 --- a/simple-mind-map/src/core/render/TextEdit.js +++ b/simple-mind-map/src/core/render/TextEdit.js @@ -207,7 +207,6 @@ export default class TextEdit { } if (!isShow) return } - this.currentNode = node const { offsetLeft, offsetTop } = checkNodeOuter(this.mindMap, node) this.mindMap.view.translateXY(offsetLeft, offsetTop) const g = node._textData.node @@ -231,6 +230,7 @@ export default class TextEdit { this.mindMap.richText.showEditText(params) return } + this.currentNode = node this.showEditTextBox(params) }