Skip to content

Commit 52c39c8

Browse files
CopilotHugos68
andauthored
Fix RatingGroup Label component using incorrect props getter (#4220)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: Hugos68 <[email protected]> Co-authored-by: Hugos68 <[email protected]>
1 parent 00c0fd2 commit 52c39c8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/wet-turkeys-care.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@skeletonlabs/skeleton-svelte": patch
3+
---
4+
5+
bugfix: spread `labelProps` instead of `controlProps` onto `RatingGroup.Label` part
6+

packages/skeleton-svelte/src/components/rating-group/anatomy/label.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
const { element, children, ...rest } = $derived(props);
1717
18-
const attributes = $derived(mergeProps(ratingGroup().getControlProps(), rest));
18+
const attributes = $derived(mergeProps(ratingGroup().getLabelProps(), rest));
1919
</script>
2020

2121
{#if element}

0 commit comments

Comments
 (0)