Skip to content

click to get data is not showing all data #101

Open
@ben-roth

Description

@ben-roth

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions