Skip to content

Commit

Permalink
RadioGroup: not produce invalid HTML in table if "is" attribute is sp…
Browse files Browse the repository at this point in the history
…ecify (#17070)
  • Loading branch information
nullptru authored and ziyoung committed Aug 20, 2019
1 parent 77c77ef commit fc822fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/radio/src/radio-group.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<template>
<div
<component
:is="_elTag"
class="el-radio-group"
role="radiogroup"
@keydown="handleKeydown"
>
<slot></slot>
</div>
</component>
</template>
<script>
import Emitter from 'element-ui/src/mixins/emitter';
Expand Down Expand Up @@ -41,6 +42,9 @@
_elFormItemSize() {
return (this.elFormItem || {}).elFormItemSize;
},
_elTag() {
return (this.$vnode.data || {}).tag || 'div';
},
radioGroupSize() {
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
}
Expand Down

0 comments on commit fc822fe

Please sign in to comment.