Set default min/max state value to props default

This commit is contained in:
apple502j committed 2019-02-27 20:22:31 +09:00
1 parent d431c3f8ba
commit 8fcfe7c7d7
1 file changed
+2 -2
+2 -2
View File
@@ -16,8 +16,8 @@ class SliderPrompt extends React.Component {
]);
this.state = {
decimalSelected: this.props.defaultDecimal,
minValue: 0,
maxValue: 100,
minValue: this.props.defaultMinValue,
maxValue: this.props.defaultMaxValue,
mustDecimal: this.checkMustDecimal(this.props.defaultMinValue, this.props.defaultMaxValue)
};
}