mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Fix Slider demo error when input non-number string, close #11553
This commit is contained in:
parent
471f9409f9
commit
8dad311df0
@ -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…
Reference in New Issue
Block a user