mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:09:08 +08:00
Merge pull request #830 from DuLinRain/patch-1
fix: validateOnChange=false时,提交后修改内容,表单不校验
This commit is contained in:
commit
499f68638e
@ -380,7 +380,7 @@ export default class FormControl extends React.PureComponent<
|
|||||||
(validateOnChange !== false && (form.submited || this.model.validated))
|
(validateOnChange !== false && (form.submited || this.model.validated))
|
||||||
) {
|
) {
|
||||||
this.lazyValidate();
|
this.lazyValidate();
|
||||||
} else if (validateOnChange === false && !this.model.valid) {
|
} else if (validateOnChange === false) {
|
||||||
this.model.reset();
|
this.model.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user