Radio: stop event propagation on radio label (#11912)

pull/11951/head
Jikkai Xiao 2018-07-11 11:54:04 +08:00 committed by hetech
parent 1e6e32b1da
commit 21a6aa33f4
2 changed files with 5 additions and 2 deletions

View File

@ -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>

View File

@ -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>