From bd4e1a0c91f5921c1013921f1a33c41f8a900076 Mon Sep 17 00:00:00 2001 From: Kirill Revenkov Date: Mon, 15 Jan 2024 23:04:43 +0300 Subject: [PATCH] fix: slider type and tooltip property --- src/components/Slider/Slider.tsx | 2 +- src/components/Slider/sliderTypes.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;