Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
formError: PropTypes.object,
checkDelay: PropTypes.number,
checkTrigger: PropTypes.oneOf(['change', 'blur', 'none']),
onChange: PropTypes.func,
onError: PropTypes.func,
onCheck: PropTypes.func,
model: PropTypes.object,
classPrefix: PropTypes.string,
errorFromContext: PropTypes.bool,
children: PropTypes.node,
readOnly: PropTypes.bool,
plaintext: PropTypes.bool
};
static defaultProps = {
classPrefix: defaultClassPrefix('form'),
model: SchemaModel({}),
layout: 'vertical',
formDefaultValue: {},
checkDelay: 500,
checkTrigger: 'change',
errorFromContext: true
};
formContextValue = null;
constructor(props: FormProps) {
super(props);
const { formDefaultValue, formError } = this.props;
this.state = {
formError: formError || {},
formValue: formDefaultValue