Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
fix(AvRadioGroup): set h-auto on form-control
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSharpieOne committed Jul 25, 2018
1 parent 5750938 commit b16c40f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/AvRadioGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default class AvRadioGroup extends Component {
const hasError = this.context.FormCtrl.hasError(this.props.name);

const classes = classNames(
'form-control border-0 p-0',
'form-control border-0 p-0 h-auto',
touched ? 'is-touched' : 'is-untouched',
this.context.FormCtrl.isDirty(this.props.name)
? 'is-dirty'
Expand All @@ -197,14 +197,12 @@ export default class AvRadioGroup extends Component {
touched && hasError && 'is-invalid'
);

attributes.className = classNames(attributes.className, 'mb-3');

return (
<fieldset {...attributes}>
<FormGroup tag="fieldset" {...attributes}>
{legend}
<div className={classes}>{children}</div>
<AvFeedback>{validation.errorMessage}</AvFeedback>
</fieldset>
</FormGroup>
);
}
}

0 comments on commit b16c40f

Please sign in to comment.