mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:29:24 +08:00
commit
c213298009
@ -56,6 +56,10 @@ export default class NumberControl extends React.Component<NumberProps, any> {
|
||||
handleChange(inputValue: any) {
|
||||
const {classPrefix: ns, onChange, resetValue} = this.props;
|
||||
|
||||
if (inputValue && typeof inputValue !== 'number') {
|
||||
return;
|
||||
}
|
||||
|
||||
onChange(typeof inputValue === 'undefined' ? resetValue || '' : inputValue);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user