Hello,
I try to make a node that has ports only shown when the node is hovered with the function makePort
(Draggable Link) and also a button that has to be outside the node and only shown when the node is hovered.
Here is the codesandbox: pensive-breeze-9y3b0 - CodeSandbox
As you can see, there is no way to click on the button Hi
as it disappear each time the mouse leaves the node, and also it seems like the button onclick doesn’t work (no alert). How could I fix that? Thank you for your answer.