Skip to content

Commit

Permalink
fix bug: the editing node can be dragged
Browse files Browse the repository at this point in the history
  • Loading branch information
hizzgdev committed Jul 23, 2024
1 parent 38e4630 commit 80f33c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/jsmind.draggable-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 80f33c0

Please sign in to comment.