We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c05737 commit fae162eCopy full SHA for fae162e
src/StarRating.tsx
@@ -277,8 +277,8 @@ const StarRating = ({
277
)}
278
accessibilityValue={{
279
min: 0,
280
- max: maxStars,
281
- now: rating,
+ max: enableHalfStar ? maxStars * 2 : maxStars,
+ now: enableHalfStar ? rating * 2 : rating, // this has to be an integer
282
}}
283
accessibilityActions={[
284
{ name: 'increment', label: accessabilityIncrementLabel },
0 commit comments