Skip to content

Commit

Permalink
fix(slider): fix thumb rendering off the slider when value was not set
Browse files Browse the repository at this point in the history
  • Loading branch information
WesSouza authored and arturbien committed Aug 4, 2022
1 parent 49ab26b commit 5abcb3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ const Slider = forwardRef<HTMLDivElement, SliderProps>(function Slider(
const vertical = orientation === 'vertical';
const [valueDerived, setValueState] = useControlledOrUncontrolled({
value,
defaultValue: defaultValue ?? 0
defaultValue: defaultValue ?? min
});

const {
Expand Down

0 comments on commit 5abcb3e

Please sign in to comment.