From 80f33c075ed172a8d0c864e78d982de40bb02cb1 Mon Sep 17 00:00:00 2001 From: hizzgdev Date: Tue, 23 Jul 2024 13:28:33 +0800 Subject: [PATCH] fix bug: the editing node can be dragged --- src/plugins/jsmind.draggable-node.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/jsmind.draggable-node.js b/src/plugins/jsmind.draggable-node.js index 965b8512..eea8ea1d 100644 --- a/src/plugins/jsmind.draggable-node.js +++ b/src/plugins/jsmind.draggable-node.js @@ -163,10 +163,13 @@ class DraggableNode { if (this.capture) { return; } + var jview = this.jm.view; + if (jview.is_editing()) { + return; + } this.active_node = null; this.view_draggable = this.jm.get_view_draggable(); - var jview = this.jm.view; var el = this.find_node_element(e.target); if (!el) { return;