From 17456cdb509cb69b34b8772f18b50d929635e77c Mon Sep 17 00:00:00 2001 From: Adam Schwartz Date: Fri, 27 Jun 2014 21:34:10 -0400 Subject: [PATCH] Maintain enum order for select options --- src/directives/decorators/bootstrap/select.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directives/decorators/bootstrap/select.html b/src/directives/decorators/bootstrap/select.html index 937da19fe..152d17ab3 100644 --- a/src/directives/decorators/bootstrap/select.html +++ b/src/directives/decorators/bootstrap/select.html @@ -7,7 +7,7 @@ class="form-control" schema-validate="form.schema" ng-required="form.required" - ng-options="val as name for (val,name) in form.titleMap"> + ng-options="val as form.titleMap[val] for val in form.schema.enum"> {{ (hasError() && errorMessage(schemaError())) || form.description}}