mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [form] catch validation error when changing rules (#8154)
This commit is contained in:
@@ -149,7 +149,9 @@ const scrollToField = (prop: FormItemProp) => {
|
||||
watch(
|
||||
() => props.rules,
|
||||
() => {
|
||||
if (props.validateOnRuleChange) validate()
|
||||
if (props.validateOnRuleChange) {
|
||||
validate().catch((err) => debugWarn(err))
|
||||
}
|
||||
},
|
||||
{ deep: true }
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user