Browse Source

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

pull/11581/head
afc163 6 years ago
parent
commit
8dad311df0
  1. 6
      components/slider/demo/input-number.md

6
components/slider/demo/input-number.md

@ -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,
});

Loading…
Cancel
Save