paulyoder / angular-bootstrap-show-errors

An Angular directive for Bootstrap to intelligently show form validation errors
MIT License
331 stars 77 forks source link

Radio Boxes #20

Closed D-Bullock closed 9 years ago

D-Bullock commented 10 years ago

Hey,

I love what you have done, but I seem to have hit a problem that hasn't been accounted for,

I have the following code:

<label class="radio-inline">
    <input type="radio" name="gender" ng-model="model.gender" required value="Male" />Male
</label>
<label class="radio-inline">
    <input type="radio" name="gender" ng-model="model.gender" required value="Female" />Female
</label>

For a button group, there isn't meant to be any form-control class on the inputs. Is there any way of using your plugin to show errors here?

D-Bullock commented 10 years ago

Actually, I solved it by creating the following CSS.

.radio-inline .form-control {
    display: initial;
    width: initial;
    height: initial;
}

It seems a bit hackish though. Feel free to close this issue unless there's a better way.

paulyoder commented 9 years ago

version 2.2.0 now has support for radio boxes. I'll close this issue, but feel free to re-open it if you run into any issues.

chrisfosterelli commented 9 years ago

Did the revert in version 2.3.0 break radio button support @paulyoder?