Skip to content

Commit

Permalink
fix: slider component does not handle zero properly (#16327)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikhil Tomar <[email protected]>
  • Loading branch information
preetibansalui and 2nikhiltom authored May 13, 2024
1 parent 5568dc9 commit 8293f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ class Slider extends PureComponent<SliderProps> {

if (adjustedValue !== targetValue) {
this.setState({
correctedValue: targetValue,
correctedValue: targetValue.toString(),
correctedPosition: handlePosition,
});
} else {
Expand Down

0 comments on commit 8293f95

Please sign in to comment.