Skip to content
Permalink
Browse files
Radio: stop event propagation on radio label (#11912)
  • Loading branch information
jikkai authored and ziyoung committed Jul 11, 2018
1 parent 1e6e32b commit 21a6aa33f4d5d03c171e89475f9254533e498ef5
Showing 2 changed files with 5 additions and 2 deletions.
@@ -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>
@@ -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>

0 comments on commit 21a6aa3

Please sign in to comment.