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 32fa001 commit b2b3bc9Copy full SHA for b2b3bc9
src/pickers/numberpicker.jsx
@@ -220,7 +220,7 @@ var NumberPicker = React.createClass({
220
221
change: function(val){
222
val = this.inRangeValue(val === '' ? null : val)
223
-
+
224
if ( this.props.value !== val )
225
this.notify('onChange', val)
226
},
@@ -229,7 +229,7 @@ var NumberPicker = React.createClass({
229
var max = this.props.max == null ? Infinity : this.props.max
230
, min = this.props.min == null ? -Infinity : this.props.min;
231
232
- if( value == null )
+ if( !_.isFinite(min) && value == null )
233
return value
234
235
return Math.max(Math.min(value, max), min)
0 commit comments