Skip to content

Commit 5abcb3e

Browse files
WesSouzaarturbien
authored andcommitted
fix(slider): fix thumb rendering off the slider when value was not set
1 parent 49ab26b commit 5abcb3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Slider/Slider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ const Slider = forwardRef<HTMLDivElement, SliderProps>(function Slider(
314314
const vertical = orientation === 'vertical';
315315
const [valueDerived, setValueState] = useControlledOrUncontrolled({
316316
value,
317-
defaultValue: defaultValue ?? 0
317+
defaultValue: defaultValue ?? min
318318
});
319319

320320
const {

0 commit comments

Comments
 (0)