fix(edges): don not add 0 to dom if interaction width is 0 #5426
This commit is contained in:
@@ -47,7 +47,7 @@ export function BaseEdge({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<path {...props} d={path} fill="none" className={cc(['react-flow__edge-path', props.className])} />
|
<path {...props} d={path} fill="none" className={cc(['react-flow__edge-path', props.className])} />
|
||||||
{interactionWidth && (
|
{interactionWidth ? (
|
||||||
<path
|
<path
|
||||||
d={path}
|
d={path}
|
||||||
fill="none"
|
fill="none"
|
||||||
@@ -55,7 +55,7 @@ export function BaseEdge({
|
|||||||
strokeWidth={interactionWidth}
|
strokeWidth={interactionWidth}
|
||||||
className="react-flow__edge-interaction"
|
className="react-flow__edge-interaction"
|
||||||
/>
|
/>
|
||||||
)}
|
) : null}
|
||||||
{label && isNumeric(labelX) && isNumeric(labelY) ? (
|
{label && isNumeric(labelX) && isNumeric(labelY) ? (
|
||||||
<EdgeText
|
<EdgeText
|
||||||
x={labelX}
|
x={labelX}
|
||||||
|
|||||||
Reference in New Issue
Block a user