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 724bd59 commit fd490b4Copy full SHA for fd490b4
packages/react/slider/src/Slider.tsx
@@ -117,7 +117,7 @@ const Slider = React.forwardRef((props, forwardedRef) => {
117
const nextValues = getNextSortedValues(prevValues, nextValue, atIndex);
118
if (hasMinStepsBetweenValues(nextValues, minStepsBetweenThumbs * step)) {
119
valueIndexToChangeRef.current = nextValues.indexOf(nextValue);
120
- return nextValues[atIndex] !== prevValues[atIndex] ? nextValues : prevValues;
+ return String(nextValues) === String(prevValues) ? prevValues : nextValues;
121
} else {
122
return prevValues;
123
}
0 commit comments