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

Dragging Node causes nodeList is undefined error #567

Open
gevely opened this issue Feb 22, 2024 · 0 comments
Open

Dragging Node causes nodeList is undefined error #567

gevely opened this issue Feb 22, 2024 · 0 comments

Comments

@gevely
Copy link

gevely commented Feb 22, 2024

I have installed react-d3-graph 2.6.0 into my react application and created a graph with basic data and config as below

const [communityNetworkData, setCommunityNetworkData] = useState({ nodes: [{ id: "node1" }, { id: "node2" }], links: [{ source: "node1", target: "node2" }] })

const graphConfigBasic = {
  nodeHighlightBehavior: true,
  node: {
    color: "lightgreen",
    size: 120,
    highlightStrokeColor: "blue",
  },
  link: {
    highlightColor: "lightblue",
  },
};

When I try to drag one of the nodes I can't and in the console I see the error

Uncaught TypeError: nodeList is undefined

graph

Are you able to offer any advice as to why this is happening please?

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

1 participant