Disable/hide handles on nodes #2698
-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
The handles are necessary for edges to find their targets, but you can just set the opacity to 0 and hide the circles themselves. All you need to do is add this to your css .react-flow__handle {
opacity: 0;
} |
Beta Was this translation helpful? Give feedback.
-
But what about the spacing the handler still has? I tried to have a height and width of 0 but that doesn't work. I want the arrow to connect to the node without spacing. ![]() |
Beta Was this translation helpful? Give feedback.
-
https://reactflow.dev/api-reference/components/handle#notes |
Beta Was this translation helpful? Give feedback.
-
A solution that worked for me well is creating custom node and adding ![]() |
Beta Was this translation helpful? Give feedback.
-
This should really just be a default option... Seems like a very common desire and this fix feels pretty hacky |
Beta Was this translation helpful? Give feedback.
The handles are necessary for edges to find their targets, but you can just set the opacity to 0 and hide the circles themselves.
This can be seen in the Floating Edges example.
All you need to do is add this to your css