From eeeae7d0e2a2bfc38f5d423536ec4c8900b1fbde Mon Sep 17 00:00:00 2001 From: ZhangMingZhao1 <1104272319@qq.com> Date: Tue, 22 Oct 2024 10:49:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AEread?= =?UTF-8?q?only=E5=A6=82=E6=9E=9C=E5=A4=84=E4=BA=8E=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=80=81=E8=BF=98=E8=83=BD=E7=BC=96=E8=BE=91=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simple-mind-map/index.js b/simple-mind-map/index.js index d2098136..358284a0 100644 --- a/simple-mind-map/index.js +++ b/simple-mind-map/index.js @@ -463,6 +463,10 @@ class MindMap { if (this.opt.readonly) { // 取消当前激活的元素 this.execCommand('CLEAR_ACTIVE_NODE') + // 如果处于编辑态,要隐藏所有的编辑框 + if (this.renderer.textEdit.isShowTextEdit()) { + this.renderer.textEdit.hideEditTextBox() + } } this.emit('mode_change', mode) }