fix: 修复 combo 因为设置了 minLength 或者 maxLength 导致提前做校验的问题 (#2857)

This commit is contained in:
liaoxuezhi 2021-11-05 12:38:02 +08:00 committed by GitHub
parent 8693ea3bd4
commit e280cbe9ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))
) {