Skip to content

Commit b9f47b1

Browse files
authored
fix(rating): add useId as key for each RatingIcon (#162)
1 parent 74d4710 commit b9f47b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/headless/src/components/rating/rating.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export const Rating = component$(
4040
const Icon = props.icon || DefaultIcon ;
4141
return (
4242
<RatingIcon
43+
key={useId()}
4344
name={`rating-${uniqueId}`}
4445
index={i}
4546
onChange$={() => onItemClick$(i)}

0 commit comments

Comments
 (0)