We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a46115a commit 4446210Copy full SHA for 4446210
package/src/Slider.tsx
@@ -211,7 +211,7 @@ const SliderComponent = (
211
...localProps
212
} = props;
213
const [currentValue, setCurrentValue] = useState(
214
- props.value || props.minimumValue || constants.SLIDER_DEFAULT_INITIAL_VALUE,
+ props.value ?? props.minimumValue ?? constants.SLIDER_DEFAULT_INITIAL_VALUE,
215
);
216
const [width, setWidth] = useState(0);
217
0 commit comments