Fix Slider demo error when input non-number string, close #11553

This commit is contained in:
afc163 2018-08-02 16:24:13 +08:00
parent 471f9409f9
commit 8dad311df0

View File

@ -22,6 +22,9 @@ class IntegerStep extends React.Component {
}
onChange = (value) => {
if (isNaN(value)) {
return;
}
this.setState({
inputValue: value,
});
@ -54,6 +57,9 @@ class DecimalStep extends React.Component {
}
onChange = (value) => {
if (isNaN(value)) {
return;
}
this.setState({
inputValue: value,
});