Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ng-options group by duplication (1.4.8) #13550

Closed
m3fawner opened this issue Dec 15, 2015 · 1 comment
Closed

ng-options group by duplication (1.4.8) #13550

m3fawner opened this issue Dec 15, 2015 · 1 comment

Comments

@m3fawner
Copy link

 <select ng-model="ctrl.model" ng-options="reason.description group by reason.type for reason in ctrl.possibleReasons"></select>

With a collection of:

this.possibleReasons = [{ type : 1, description: 'Test1'}, { type: 2, description: 'Test2'}];

produces a dom element that has 4 opt-groups output instead of the expected two. This creates a duplication of the groups within the select element.

@gkalpak
Copy link
Member

gkalpak commented Dec 15, 2015

Duplicate of #13487.

It has already been fixed in master. The fix will land with v1.4.9 and v1.5.0-rc.1.

@gkalpak gkalpak closed this as completed Dec 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants