Set default min/max state value to props default
This commit is contained in:
1 parent
d431c3f8ba
commit
8fcfe7c7d7
1 file changed
+2
-2
@@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user