Skip to content

Commit 17456cd

Browse files
committed
Maintain enum order for select options
1 parent 76d9033 commit 17456cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/decorators/bootstrap/select.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class="form-control"
88
schema-validate="form.schema"
99
ng-required="form.required"
10-
ng-options="val as name for (val,name) in form.titleMap">
10+
ng-options="val as form.titleMap[val] for val in form.schema.enum">
1111
</select>
1212
<span class="help-block">{{ (hasError() && errorMessage(schemaError())) || form.description}} </span>
1313
</div>

0 commit comments

Comments
 (0)