From b78d265f265b441ef3efb543339c3972a7beaa70 Mon Sep 17 00:00:00 2001 From: Hunter Johnston Date: Fri, 12 Apr 2024 20:32:55 -0400 Subject: [PATCH] gross but --- .../src/lib/bits/accordion/components/accordion.svelte | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/bits-ui/src/lib/bits/accordion/components/accordion.svelte b/packages/bits-ui/src/lib/bits/accordion/components/accordion.svelte index 6dacf53fc..516328723 100644 --- a/packages/bits-ui/src/lib/bits/accordion/components/accordion.svelte +++ b/packages/bits-ui/src/lib/bits/accordion/components/accordion.svelte @@ -22,13 +22,19 @@ value === undefined && (value = ""); return box( () => value as string, - (v) => (value = v) + (v) => { + value = v; + onValueChange?.(v as string[] & string); + } ); } value === undefined && (value = []); return box( () => value as string[], - (v) => (value = v) + (v) => { + value = v; + onValueChange?.(v as string[] & string); + } ); }