lazyValidate 也 flush 掉

This commit is contained in:
liaoxuezhi 2019-12-19 18:23:47 +08:00
parent 32bc2496d0
commit 02204183af

View File

@ -146,7 +146,10 @@ export default class FormControl extends React.PureComponent<
}
// 提交前先把之前的 lazyEmit 执行一下。
this.hook3 = () => this.lazyEmitChange.flush();
this.hook3 = () => {
this.lazyEmitChange.flush();
this.lazyValidate.flush();
};
addHook(this.hook3, 'flush');
const formItem = this.model as IFormItemStore;