fix: formitem error when use native tag #4383

close #4383
This commit is contained in:
tangjinzhou 2021-07-17 21:19:10 +08:00
parent bea5df1541
commit b5ab14df8d
2 changed files with 2 additions and 2 deletions

View File

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

2
v2-doc

@ -1 +1 @@
Subproject commit 57c08127bf0e3e826b03f845df3e1332820964e5
Subproject commit fc73e64bcdf41be854c2f7a907c05b056ad652ab