diff --git a/.changeset/stale-radios-listen.md b/.changeset/stale-radios-listen.md new file mode 100644 index 000000000..5212f84d3 --- /dev/null +++ b/.changeset/stale-radios-listen.md @@ -0,0 +1,5 @@ +--- +"@vue-flow/core": minor +--- + +Inherit attributes on main edge path element in BaseEdge component. diff --git a/packages/core/src/components/Edges/BaseEdge.vue b/packages/core/src/components/Edges/BaseEdge.vue index 66a844db3..c1b7dbfd8 100644 --- a/packages/core/src/components/Edges/BaseEdge.vue +++ b/packages/core/src/components/Edges/BaseEdge.vue @@ -3,7 +3,7 @@ import { ref, useAttrs } from 'vue' import type { BaseEdgeProps } from '../../types' import EdgeText from './EdgeText.vue' -const { interactionWidth = 20, labelShowBg = true, ...props } = defineProps() +withDefaults(defineProps(), { interactionWidth: 20 }) const pathEl = ref(null) @@ -30,12 +30,11 @@ export default {