mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:38:53 +08:00
revert
This commit is contained in:
parent
66495c551c
commit
3113ff58d7
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user