vakata / jstree

jquery tree plugin
http://jstree.com
MIT License
5.15k stars 1.38k forks source link

jstree 3.3.5 Is drag_selection supposed to move multiple nodes? If so is it supposed to move only those that are checkmarked? #2459

Closed peternoges closed 3 years ago

peternoges commented 3 years ago

I'm using jstree 3_3_5 with the 'dnd' and 'checkbox' plugin.

Currently when i checkmark multiple nodes and drag one of them, jstree tells me "2 nodes +" are being moved (see image) but unfortunately only 1 is moved. I thought drag_selection would drag all marked nodes, but for some reason only one node moves.

Is drag_selection supposed to move multiple nodes? If so is it supposed to move only those that are checkmarked? image

dnd: {
"drag_selection" : true,  
},

...

"check_callback" :  function (op, node, par, pos, more) {

 if((op === "move_node" || op === "copy_node") && more && more.core && !confirm('Are you sure you want to drag these nodes?'))
{return false;
                                }
                                return true;
                                },
peternoges commented 3 years ago

Turns out it was working as expected and the issue was unrelated.