diff --git a/components/form/FormItem.tsx b/components/form/FormItem.tsx index 986ba8699..af687fc34 100644 --- a/components/form/FormItem.tsx +++ b/components/form/FormItem.tsx @@ -306,7 +306,7 @@ export default defineComponent({ const children = flattenChildren(slots.default?.()); let firstChildren = children[0]; if (fieldName.value && props.autoLink && isValidElement(firstChildren)) { - const originalEvents = firstChildren.props; + const originalEvents = firstChildren.props || {}; const originalBlur = originalEvents.onBlur; const originalChange = originalEvents.onChange; firstChildren = cloneElement(firstChildren, { diff --git a/v2-doc b/v2-doc index 57c08127b..fc73e64bc 160000 --- a/v2-doc +++ b/v2-doc @@ -1 +1 @@ -Subproject commit 57c08127bf0e3e826b03f845df3e1332820964e5 +Subproject commit fc73e64bcdf41be854c2f7a907c05b056ad652ab