Skip to content
This repository was archived by the owner on May 15, 2022. It is now read-only.

Commit 0ef80f3

Browse files
committed
fix check for slider
1 parent ffca55f commit 0ef80f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DatNumber.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class DatNumber extends React.Component {
128128
render() {
129129
const { min, max, path, label, labelWidth } = this.props;
130130
const labelText = isString(label) ? label : path;
131-
const hasSlider = isFinite(min) && isFinite(min);
131+
const hasSlider = isFinite(min) && isFinite(max);
132132
const controlsWidth = 100 - labelWidth;
133133
const inputWidth = hasSlider ? Math.round(controlsWidth / 3) : controlsWidth;
134134
const sliderWidth = controlsWidth - inputWidth;

0 commit comments

Comments
 (0)