mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
fix: input-number NaN问题
This commit is contained in:
parent
d7bef8c4b6
commit
08bb27276e
@ -488,6 +488,8 @@ export default class NumberControl extends React.Component<
|
||||
const finalValue =
|
||||
unit && value && typeof value === 'string'
|
||||
? value.replace(unit, '')
|
||||
: isNaN(value)
|
||||
? void 0
|
||||
: value;
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user