We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c56076 commit 5970a2aCopy full SHA for 5970a2a
src/InputSpinner.js
@@ -309,6 +309,8 @@ class InputSpinner extends Component {
309
310
if (isEmptyValue && this.isEmptied()) {
311
num = parsedNum = null;
312
+ } else {
313
+ num = this._withinRange(num);
314
}
315
316
if (this.state.value !== num && isCallable(this.props.onChange)) {
@@ -322,11 +324,7 @@ class InputSpinner extends Component {
322
324
323
325
326
- if (!isEmptyValue) {
- this.setState({value: num});
327
- } else {
328
- this.setState({value: value});
329
- }
+ this.setState({value: num});
330
331
332
/**
0 commit comments