From 670e3c69a8fb1f2506da1eecea5c25db5b612233 Mon Sep 17 00:00:00 2001 From: Isaac Ellmen Date: Tue, 23 Jun 2020 21:45:11 -0400 Subject: [PATCH] onSelectNode returns an event before the node --- docs/InteractiveForceGraph.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/InteractiveForceGraph.md b/docs/InteractiveForceGraph.md index 9e0d874..9254450 100644 --- a/docs/InteractiveForceGraph.md +++ b/docs/InteractiveForceGraph.md @@ -9,7 +9,7 @@ import { InteractiveForceGraph, ForceGraphNode, ForceGraphLink } from 'react-vis console.log(node)} + onSelectNode={(event, node) => console.log(node)} highlightDependencies >