Skip to content

Commit 4446210

Browse files
authored
fix: do not ignore 0 value prop (#692)
1 parent a46115a commit 4446210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/Slider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const SliderComponent = (
211211
...localProps
212212
} = props;
213213
const [currentValue, setCurrentValue] = useState(
214-
props.value || props.minimumValue || constants.SLIDER_DEFAULT_INITIAL_VALUE,
214+
props.value ?? props.minimumValue ?? constants.SLIDER_DEFAULT_INITIAL_VALUE,
215215
);
216216
const [width, setWidth] = useState(0);
217217

0 commit comments

Comments
 (0)