Fix setting class on SvelteFlow component breaking css

This commit is contained in:
peterkogo
2025-02-19 10:47:17 +01:00
parent a346e7aa3d
commit 630bf5442b
2 changed files with 6 additions and 7 deletions
@@ -1,6 +1,6 @@
<script lang="ts">
import { getContext, setContext, onDestroy } from 'svelte';
import type { DOMAttributes } from 'svelte/elements';
import type { HTMLAttributes } from 'svelte/elements';
import { ConnectionLineType, PanOnScrollMode } from '@xyflow/system';
import { key, createStore } from '$lib/store';
@@ -66,7 +66,7 @@
edges = $bindable([]),
viewport = $bindable(undefined),
...props
}: SvelteFlowProps & DOMAttributes<HTMLDivElement> = $props();
}: SvelteFlowProps & HTMLAttributes<HTMLDivElement> = $props();
const store = createStore({
props,