mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [form-item] do not validate without prop property (#9993)
* fix(components): [form-item] do not validate without `prop` property * fix: update normalizeRules * fix: update validate logic * fix: remove redundant judgments * chore: update
This commit is contained in:
@@ -292,7 +292,7 @@ const doValidate = async (rules: RuleItem[]): Promise<true> => {
|
||||
|
||||
const validate: FormItemContext['validate'] = async (trigger, callback) => {
|
||||
// skip validation if its resetting
|
||||
if (isResettingField) {
|
||||
if (isResettingField || !props.prop) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user