Commit 960bbcb5 authored by lichao's avatar lichao Committed by GitHub

RadioGroup: fix RadioGroup used in component causes exception #17908 (#20783)

parent 10bb2df8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment