This commit is contained in:
rickcole 2020-03-20 11:04:10 +08:00
parent 66495c551c
commit 3113ff58d7

View File

@ -309,7 +309,7 @@ export default class FormControl extends React.PureComponent<
control = control.getWrappedInstance();
}
if (control && control.validate) {
if (control && control.validate && this.model) {
const formItem = this.model as IFormItemStore;
let validate = promisify(control.validate.bind(control));
this.hook = function() {