Merge pull request #3561 from wbkd/svelte-undefined-edge-styles
fix(svelte) undefined edge classes do not append "undefined" as class
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<svelte:options immutable />
|
<svelte:options immutable />
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import cc from 'classcat';
|
||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
import { getMarkerId } from '@xyflow/system';
|
import { getMarkerId } from '@xyflow/system';
|
||||||
|
|
||||||
@@ -73,7 +74,7 @@
|
|||||||
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
||||||
{#if !hidden}
|
{#if !hidden}
|
||||||
<g
|
<g
|
||||||
class="svelte-flow__edge {className}"
|
class={cc(['svelte-flow__edge', className])}
|
||||||
class:animated
|
class:animated
|
||||||
class:selected
|
class:selected
|
||||||
data-id={id}
|
data-id={id}
|
||||||
|
|||||||
Reference in New Issue
Block a user