mirror of https://github.com/ElemeFE/element
Radio: stop event propagation on radio label (#11912)
parent
1e6e32b1da
commit
21a6aa33f4
|
@ -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 @@
|
||||||
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>
|
||||||
|
|
Loading…
Reference in New Issue