Permalink
Browse files

feat(form-radio): ARIA - Add IDs to individual radios (#663)

If ID supplied on component, generate IDs for each radio input
  • Loading branch information...
tmorehouse committed Jul 7, 2017
1 parent 6919cc5 commit 1de785e4e25bab8fa94b02fd1215099a9d7b1a0e
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/components/form-radio.vue
@@ -6,9 +6,9 @@
:aria-invalid="ariaInvalid"
>
<label :class="[checkboxClass, custom?'custom-radio':null]"
v-for="option in formOptions"
v-for="(option, idx) in formOptions"
>
<input :id="option.id || null"
<input :id="id ? (id + '__BV_radio_' + idx) : null"
:class="custom?'custom-control-input':null"
ref="inputs"
type="radio"

0 comments on commit 1de785e

Please sign in to comment.