mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
lazyValidate 也 flush 掉
This commit is contained in:
parent
32bc2496d0
commit
02204183af
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user