vue-draggable-nested-tree icon indicating copy to clipboard operation
vue-draggable-nested-tree copied to clipboard

click to get data is not showing all data

Open ben-roth opened this issue 6 years ago • 1 comments

Hello, I am trying to figure out how add click support to get all of the specific node data however I don't see the proper node data like I do in the dragend event for instance the parent is missing on the click of a node but is present in the dragend event.

I saw your answer for supporting this functionality in #61 however when I do that same thing I don't for instance get the parent or children of the clicked node like I do when I log the data from a dragend function.

Here is what I see in the dplh of a dragend event:

  • notice the parent and children are here
dplh: Object
active: false
children: Array(0)
class: "draggable-placeholder"
droppable: false
innerBackClass: "draggable-placeholder-inner-back"
innerBackStyle: Object
innerClass: "draggable-placeholder-inner"
innerStyle: Object
isDragPlaceHolder: true
level: null
open: true
parent: {…}
style: Object
_id: "draggable_tree_drag_placeHolder"
_treeNodePropertiesCompleted: true

Here is what I see in _vm.store.dplh on the click event:

  • notice the parent and children are NOT here
dplh: Object
class: "draggable-placeholder"
droppable: false
innerBackClass: "draggable-placeholder-inner-back"
innerBackStyle: Object
innerClass: "draggable-placeholder-inner"
innerStyle: Object
isDragPlaceHolder: true
level: null
style: Object
_id: "draggable_tree_drag_placeHolder"

ben-roth avatar Oct 24 '19 07:10 ben-roth

Thank you for your use. I published he-tree-vue. vue-draggable-nested-tree will no longer be updated. try this https://he-tree-vue.phphe.com/

phphe avatar Jan 10 '20 14:01 phphe