You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, if the collapsible feature is enabled, the user defined onNodeClick handler is never called. This is due to a typo in the _tick method implementation (in Graph component).
The text was updated successfully, but these errors were encountered:
There was a mistake in the `_tick` method which caused the user's
`onNodeClick` custom handler to never be triggered when the collapsible
feature was enabled.
The problem was that it called `setState` without using a callback
parameter if the received `cb` was not empty. The contents of that
ternary operator should be the opposite for things to work.
This fix closes#136.
* fix: Trigger custom click handler in collapsible nodes
There was a mistake in the `_tick` method which caused the user's
`onNodeClick` custom handler to never be triggered when the collapsible
feature was enabled.
The problem was that it called `setState` without using a callback
parameter if the received `cb` was not empty. The contents of that
ternary operator should be the opposite for things to work.
This fix closes#136.
* Add e2e test for node click callback
Right now, if the collapsible feature is enabled, the user defined
onNodeClick
handler is never called. This is due to a typo in the_tick
method implementation (inGraph
component).The text was updated successfully, but these errors were encountered: