Skip to content

deselectNode event reports nodes, not nodeIds, in previousSelection #1688

Open
@micrology

Description

@micrology

The documentation for the deselectNode event states that the property returned includes an array of nodeIds for the nodes previously selected:

previousSelection: {
    nodes: [Array of previously selected nodeIds],
    edges: [Array of previously selected edgeIds]
  }

However, using version 9.1.0, the array is not of nodeIds, but of nodes, for example:

console.log(props.previousSelection.nodes)
[Node1]
0: Node1 {options: {…}, globalOptions: {…}, defaultOptions: {…}, body: {…}, edges: Array(3), …}
length: 1
[[Prototype]]: Array(0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions