From 4212b16687b8b31a970b62bafa69451a8f1c07ef Mon Sep 17 00:00:00 2001 From: Hunter Johnston Date: Sat, 12 Aug 2023 16:46:55 -0400 Subject: [PATCH 1/2] fix radio button type --- src/lib/primitives/radio-group/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/primitives/radio-group/types.ts b/src/lib/primitives/radio-group/types.ts index 57312c72c..686b3b0b3 100644 --- a/src/lib/primitives/radio-group/types.ts +++ b/src/lib/primitives/radio-group/types.ts @@ -10,7 +10,7 @@ import type { RadioGroupComponentEvents, RadioGroupItemProps } from "@melt-ui/svelte"; -import type { HTMLInputAttributes } from "svelte/elements"; +import type { HTMLButtonAttributes, HTMLInputAttributes } from "svelte/elements"; type Props = Expand< OmitValue & { @@ -27,7 +27,7 @@ type ItemProps = Expand< asChild?: boolean; } > & - HTMLButtonElement; + HTMLButtonAttributes; type ItemEvents = RadioGroupComponentEvents["item"] & KeydownClickEvents; From 1b3a7d236c69626264de7af88298e3367aa7932c Mon Sep 17 00:00:00 2001 From: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> Date: Sat, 12 Aug 2023 16:47:17 -0400 Subject: [PATCH 2/2] add changeset --- .changeset/thirty-pillows-run.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/thirty-pillows-run.md diff --git a/.changeset/thirty-pillows-run.md b/.changeset/thirty-pillows-run.md new file mode 100644 index 000000000..bbf7340f8 --- /dev/null +++ b/.changeset/thirty-pillows-run.md @@ -0,0 +1,5 @@ +--- +"@huntabyte/primitives": patch +--- + +fix radio button type