From d63782ddf2a590431f1beffbe8aebdec03cdd78c Mon Sep 17 00:00:00 2001 From: orangemug Date: Sun, 13 Oct 2019 18:03:58 +0100 Subject: [PATCH] Remove react warnings. --- src/components/inputs/NumberInput.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/inputs/NumberInput.jsx b/src/components/inputs/NumberInput.jsx index 369f9833..0de1fa48 100644 --- a/src/components/inputs/NumberInput.jsx +++ b/src/components/inputs/NumberInput.jsx @@ -24,6 +24,7 @@ class NumberInput extends React.Component { value: props.value }; } + return {}; } changeValue(newValue) { @@ -82,7 +83,7 @@ class NumberInput extends React.Component { spellCheck="false" className="maputnik-number" placeholder={this.props.default} - value={this.state.value} + value={this.state.value || ""} onChange={e => this.changeValue(e.target.value)} onBlur={this.resetValue} />