Skip to content

Commit

Permalink
Radio: stop event propagation on radio label (#11912)
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai authored and ziyoung committed Jul 11, 2018
1 parent 1e6e32b commit 21a6aa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/radio/src/radio-button.vue
Expand Up @@ -25,7 +25,10 @@
@focus="focus = true"
@blur="focus = false"
>
<span class="el-radio-button__inner" :style="value === label ? activeStyle : null">
<span
class="el-radio-button__inner"
:style="value === label ? activeStyle : null"
@keydown.stop>
<slot></slot>
<template v-if="!$slots.default">{{label}}</template>
</span>
Expand Down
2 changes: 1 addition & 1 deletion packages/radio/src/radio.vue
Expand Up @@ -35,7 +35,7 @@
tabindex="-1"
>
</span>
<span class="el-radio__label">
<span class="el-radio__label" @keydown.stop>
<slot></slot>
<template v-if="!$slots.default">{{label}}</template>
</span>
Expand Down

0 comments on commit 21a6aa3

Please sign in to comment.