Merge pull request #1 from SergioCrisostomo/chackbox_tabindex2
Focus on <label> when <input> gets the focus
This commit is contained in:
commit
17094133c1
1 changed files with 8 additions and 4 deletions
|
@ -8,22 +8,26 @@
|
|||
<input
|
||||
v-if="group"
|
||||
type="checkbox"
|
||||
tabindex="-1"
|
||||
tabindex="-1"
|
||||
:class="inputClasses"
|
||||
:disabled="disabled"
|
||||
:value="label"
|
||||
v-model="model"
|
||||
:name="name"
|
||||
@change="change">
|
||||
@change="change"
|
||||
@focus="$el.focus()"
|
||||
>
|
||||
<input
|
||||
v-if="!group"
|
||||
type="checkbox"
|
||||
tabindex="-1"
|
||||
tabindex="-1"
|
||||
:class="inputClasses"
|
||||
:disabled="disabled"
|
||||
:checked="currentValue"
|
||||
:name="name"
|
||||
@change="change">
|
||||
@change="change"
|
||||
@focus="$el.focus()"
|
||||
>
|
||||
</span>
|
||||
<slot><span v-if="showSlot">{{ label }}</span></slot>
|
||||
</label>
|
||||
|
|
Loading…
Add table
Reference in a new issue