From 8fcfe7c7d7fd399c8a94254932d1f0a62f90afb5 Mon Sep 17 00:00:00 2001 From: apple502j <apple502j@yahoo.co.jp> Date: Wed, 27 Feb 2019 20:22:31 +0900 Subject: [PATCH] Set default min/max state value to props default --- src/containers/slider-prompt.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers/slider-prompt.jsx b/src/containers/slider-prompt.jsx index 468fa0242..4fd6f9df3 100644 --- a/src/containers/slider-prompt.jsx +++ b/src/containers/slider-prompt.jsx @@ -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) }; } -- GitLab