fix: input-number NaN问题

This commit is contained in:
yupeng12 2024-06-14 10:01:34 +08:00
parent d7bef8c4b6
commit 08bb27276e

View File

@ -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 (