Skip to content

Commit 21db7fd

Browse files
committed
Fix for #430 Radios validation failing
1 parent 61f584e commit 21db7fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/directives/decorators/bootstrap/radios.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<div class="form-group schema-form-radios {{form.htmlClass}}" ng-class="{'has-error': form.disableErrorState !== true && hasError(), 'has-success': form.disableSuccessState !== true && hasSuccess()}">
2-
<label class="control-label {{form.labelHtmlClass}}" ng-show="showTitle()">{{form.title}}</label>
2+
<label ng-model="$$value$$"
3+
ng-model-options="form.ngModelOptions"
4+
schema-validate="form"
5+
class="control-label {{form.labelHtmlClass}}" ng-show="showTitle()">{{form.title}}</label>
36
<div class="radio" ng-repeat="item in form.titleMap" >
47
<label>
58
<input type="radio"
@@ -8,7 +11,6 @@
811
ng-disabled="form.readonly"
912
ng-model="$$value$$"
1013
ng-model-options="form.ngModelOptions"
11-
schema-validate="form"
1214
ng-value="item.value"
1315
name="{{form.key.join('.')}}">
1416
<span ng-bind-html="item.name"></span>

0 commit comments

Comments
 (0)