Commit 21a6aa33 authored by Jikkai Xiao's avatar Jikkai Xiao Committed by hetech

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

parent 1e6e32b1
......@@ -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>
......
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