I have a group of radio buttons that are required in the form. One of the radio buttons has an option to type in a custom value. If I select this radio button and begin typing in the custom value, then the radio button is deselected. How do I fix this?
<div ng-controller="MyCtrl">
<form>
<input type="radio" value="red" ng-model="color" ng-required="!color">red</input>
<input type="radio" value="blue" ng-model="color" ng-required="!color">blue</input>
<input type="radio" ng-value="field" ng-model="color" ng-required="!color">Other:</input>
<input type="text" ng-model="field"></input>
</form>
</div>
Jsfiddle here.