This commit is contained in:
rickcole 2020-03-20 11:04:10 +08:00
parent d11bb08930
commit 177452fb37
1 changed files with 1 additions and 1 deletions

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() {