Commit 18efb1b412705d744d4371b65b18ba2c3454a6a0

Authored by Graham Fairweather
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 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 6 <span :class="radioClasses">
4 7 <span :class="innerClasses"></span>
5 8 <input
... ... @@ -9,7 +12,8 @@
9 12 :disabled="disabled"
10 13 :checked="currentValue"
11 14 :name="name"
12   - @change="change">
  15 + @change="change"
  16 + >
13 17 </span><slot>{{ label }}</slot>
14 18 </label>
15 19 </template>
... ...