fix: 修复 inputNumber resetValue 默认值失效问题 (#2264)

This commit is contained in:
RickCole 2021-07-12 18:43:02 +08:00 committed by GitHub
parent 2eef36c633
commit de4bd5d915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,6 +120,7 @@ export default class NumberControl extends React.Component<NumberProps, any> {
})
export class NumberControlRenderer extends NumberControl {
static defaultProps: Partial<FormControlProps> = {
validations: 'isNumeric'
validations: 'isNumeric',
...NumberControl.defaultProps
};
}