From 5053058c328001766703afe886d33952641aea08 Mon Sep 17 00:00:00 2001 From: orangemug Date: Mon, 20 May 2019 11:21:23 +0100 Subject: [PATCH] Fixed default values for range slider. --- src/components/inputs/NumberInput.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/inputs/NumberInput.jsx b/src/components/inputs/NumberInput.jsx index 5c332ad7..742a1cfc 100644 --- a/src/components/inputs/NumberInput.jsx +++ b/src/components/inputs/NumberInput.jsx @@ -106,6 +106,8 @@ class NumberInput extends React.Component { this.props.min !== undefined && this.props.max !== undefined && this.props.allowRange ) { + const value = this.props.value === undefined ? this.props.default : this.props.value; + rangeEl = (