You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got some issues while moving nodes right under the root node. Mostly the concat function not working here (on jstreer.js at $el.on("move_node.jstree", function(e, data)) :
var oldPath = oldInstance
.get_path(data.old_parent)
.concat(nodeText);
Exemple tree :
# (root node)
- A (child node)
- B
- C
I figured out a solution that would improve the consistancy of the jsTreeMoved event of the "from" and the "to" values while also retrieve the positions of the nodes (which is important in my use case but might also be helpful to other users) :
on $el.on("move_node.jstree", function(e, data) :
I vaguely remember I already encountered a similar issue. The code with .concat does not work because the path is not an array here, it is null. Right?
Are you sure that [data.parent].concat will work in all situations? Anyway I'll have to check. These Shiny values are used in the "tree navigator" provided by the package, I'll have to check that your proposal does not break it.
I got some issues while moving nodes right under the root node. Mostly the concat function not working here (on
jstreer.js
at$el.on("move_node.jstree", function(e, data)
) :Exemple tree :
I figured out a solution that would improve the consistancy of the jsTreeMoved event of the "from" and the "to" values while also retrieve the positions of the nodes (which is important in my use case but might also be helpful to other users) :
on
$el.on("move_node.jstree", function(e, data)
:can be replaced by either :
or :
Thank for looking into this issue !
Best regards
The text was updated successfully, but these errors were encountered: