diff --git a/src/components/Slider/Slider.tsx b/src/components/Slider/Slider.tsx index dc2fb1c075..f2f57e330a 100644 --- a/src/components/Slider/Slider.tsx +++ b/src/components/Slider/Slider.tsx @@ -23,7 +23,7 @@ export const Slider = React.forwardRef(function Slider( step = 1, infoPointCount = 0, availableValues, - withTooltip = true, + withTooltip = false, error = false, disabled = false, keyboard = true, diff --git a/src/components/Slider/sliderTypes.d.ts b/src/components/Slider/sliderTypes.d.ts index c94499c52c..d393db1d89 100644 --- a/src/components/Slider/sliderTypes.d.ts +++ b/src/components/Slider/sliderTypes.d.ts @@ -11,7 +11,7 @@ export type RcSliderValueType = number | number[]; export type SliderProps = { value?: ValueType; defaultValue?: ValueType; - size: SliderSize; + size?: SliderSize; min?: number; max?: number; step?: number;