Skip to content

Commit

Permalink
RadioGroup: fix RadioGroup used in component causes exception ElemeFE…
Browse files Browse the repository at this point in the history
  • Loading branch information
lceric authored and hzsrc committed Feb 2, 2023
1 parent 5fabd85 commit 60cc99d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/radio/src/radio-group.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
return (this.elFormItem || {}).elFormItemSize;
},
_elTag() {
return (this.$vnode.data || {}).tag || 'div';
let tag = (this.$vnode.data || {}).tag;
if (!tag || tag === 'component') tag = 'div';
return tag;
},
radioGroupSize() {
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
Expand Down

0 comments on commit 60cc99d

Please sign in to comment.