Closed mirisony closed 1 week ago
The custom minimap node receives an onClick handler as a prop. Because you are in charge of the dom node you need to call the handler yourself.
<element onClick={(event) => props.onClick(event, nodeId)} />
Thank you @peterkogo 🙏
Although - the nodeId isn't being passed in the onClick event. I took it from the the 'id' prop the MiniMapNode receives.
Describe the Bug
When using a custom minimap node, the onNodeClick of the minimap doesn't work.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Expected behavior
As a user, I expected my callback to be called
Screenshots or Videos
No response
Platform
Additional context
No response