mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
fix: 修复 combo 因为设置了 minLength 或者 maxLength 导致提前做校验的问题 (#2857)
This commit is contained in:
parent
8693ea3bd4
commit
e280cbe9ff
@ -506,8 +506,8 @@ export function wrapControl<
|
||||
|
||||
if (
|
||||
// 如果配置了 minLength 或者 maxLength 就切成及时验证
|
||||
(typeof maxLength && maxLength) ||
|
||||
(typeof minLength && minLength) ||
|
||||
this.model.rules.minLength ||
|
||||
this.model.rules.maxLength ||
|
||||
validateOnChange === true ||
|
||||
(validateOnChange !== false && (formSubmited || validated))
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user