Skip to content

Commit d2c1c51

Browse files
committed
fix(core): set interaction edge styles so animation does not break pointer
1 parent 6eb5e5a commit d2c1c51

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/core/src/components/Edges/BaseEdge.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const BaseEdge: FunctionalComponent<BaseEdgeProps> = function (
4141
'fill': 'none',
4242
'stroke-opacity': 0,
4343
'stroke-width': interactionWidth,
44+
'class': 'vue-flow__edge-interaction',
4445
})
4546
: null,
4647
label && isNumber(labelX) && isNumber(labelY)

packages/core/src/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
animation: dashdraw 0.5s linear infinite;
7979
}
8080

81+
&.animated path.vue-flow__edge-interaction {
82+
stroke-dasharray: none;
83+
animation: none;
84+
}
85+
8186
&.inactive {
8287
pointer-events: none;
8388
}

0 commit comments

Comments
 (0)