Compare commits

...

3 Commits

Author SHA1 Message Date
Otto
42b7b6ee37 fix: Use strokeOpacity and stroke color for SVG hit detection
The invisible path needs an actual stroke color (just made invisible via
strokeOpacity=0) for SVG to register pointer events on the stroke area.
Also added react-flow__edge-interaction class for consistency with the
legacy builder pattern.
2026-02-12 09:43:16 +00:00
Krzysztof Czerwinski
a7f9bf3cb8 Merge branch 'dev' into fix/edge-hover-x-button-SECRT-1943 2026-02-12 18:07:43 +09:00
Otto
764070f6a7 fix(builder): Show X button on edge line hover, not just button hover
Add invisible interaction path along edge that triggers hover state,
making the remove button appear when hovering anywhere on the connection
line rather than requiring users to find the small button directly.

Fixes SECRT-1943
2026-02-12 08:25:56 +00:00

View File

@@ -63,6 +63,17 @@ const CustomEdge = ({
return (
<>
{/* Invisible interaction path - wider hit area for hover detection */}
<path
d={edgePath}
fill="none"
stroke="black"
strokeOpacity={0}
strokeWidth={20}
className="react-flow__edge-interaction cursor-pointer"
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
/>
<BaseEdge
path={edgePath}
markerEnd={markerEnd}