Commit 18efb1b412705d744d4371b65b18ba2c3454a6a0
1 parent
e0f097e6
Key space to select
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
src/components/radio/radio.vue
| 1 | <template> | 1 | <template> |
| 2 | - <label :class="wrapClasses" :tabindex="disabled ? -1 : 0"> | 2 | + <label |
| 3 | + :class="wrapClasses" | ||
| 4 | + :tabindex="disabled ? -1 : 0" | ||
| 5 | + @keyup.space="change"> | ||
| 3 | <span :class="radioClasses"> | 6 | <span :class="radioClasses"> |
| 4 | <span :class="innerClasses"></span> | 7 | <span :class="innerClasses"></span> |
| 5 | <input | 8 | <input |
| @@ -9,7 +12,8 @@ | @@ -9,7 +12,8 @@ | ||
| 9 | :disabled="disabled" | 12 | :disabled="disabled" |
| 10 | :checked="currentValue" | 13 | :checked="currentValue" |
| 11 | :name="name" | 14 | :name="name" |
| 12 | - @change="change"> | 15 | + @change="change" |
| 16 | + > | ||
| 13 | </span><slot>{{ label }}</slot> | 17 | </span><slot>{{ label }}</slot> |
| 14 | </label> | 18 | </label> |
| 15 | </template> | 19 | </template> |