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 @@ ...@@ -25,7 +25,10 @@
@focus="focus = true" @focus="focus = true"
@blur="focus = false" @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> <slot></slot>
<template v-if="!$slots.default">{{label}}</template> <template v-if="!$slots.default">{{label}}</template>
</span> </span>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
tabindex="-1" tabindex="-1"
> >
</span> </span>
<span class="el-radio__label"> <span class="el-radio__label" @keydown.stop>
<slot></slot> <slot></slot>
<template v-if="!$slots.default">{{label}}</template> <template v-if="!$slots.default">{{label}}</template>
</span> </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