Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

click to get data is not showing all data #101

Open
ben-roth opened this issue Oct 24, 2019 · 1 comment
Open

click to get data is not showing all data #101

ben-roth opened this issue Oct 24, 2019 · 1 comment

Comments

@ben-roth
Copy link

ben-roth commented Oct 24, 2019

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"
@phphe
Copy link
Owner

phphe commented Jan 10, 2020

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants