Skip to content

Commit

Permalink
fix(form-radio-group): prepare for bootstrap V4.beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorehouse authored Dec 7, 2017
1 parent f27f262 commit 5b659d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/form-checkbox/form-checkbox-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export default {
return h(
'b-form-checkbox',
{
key: `radio_${idx}_opt`,
key: `check_${idx}_opt`,
props: {
id: t.safeId(`_BV_radio_${idx}_opt_`),
id: t.safeId(`_BV_check_${idx}_opt_`),
name: t.name,
value: option.value,
required: t.name && t.required,
Expand All @@ -32,6 +32,7 @@ export default {
id: t.safeId(),
role: 'group',
tabindex: '-1',
// `data-toggle="buttons" will not be needed in BS V4.beta.3
'data-toggle': t.buttons ? 'buttons' : null, // Needed for styling only!
'aria-required': t.required ? 'true' : null,
'aria-invalid': t.computedAriaInvalid
Expand Down Expand Up @@ -92,6 +93,7 @@ export default {
const t = this
if (t.buttons) {
return [
'btn-group-toggle',
t.stacked ? 'btn-group-vertical' : 'btn-group',
t.size ? `btn-group-${this.size}` : '',
t.validated ? `was-validated` : ''
Expand Down

0 comments on commit 5b659d1

Please sign in to comment.