-
Notifications
You must be signed in to change notification settings - Fork 27.5k
ng-options duplicates all <option> entries if manual <option> included with ng-if directive on it. #13065
Comments
It looks like it is fixed in master: http://plnkr.co/edit/eXkvYQvsyPKEjPKEndhZ?p=preview |
I clicked on the link you provided (the plunker) but found that it was On Fri, Oct 9, 2015 at 1:05 PM, Pawel Kozlowski notifications@github.com
|
@pavlovich sorry, copied the wrong link. Here you go: http://plnkr.co/edit/GmCbsH0xrMPxviMFD2Qv?p=preview You can always reference build from master using https://code.angularjs.org/snapshot/ |
Actually, the plunker at the link you provided does not work! It does not Best regards, Peter On Fri, Oct 9, 2015 at 3:11 PM, Pawel Kozlowski notifications@github.com
|
If I create a and use ng-options to populate the available options, and if I want to include a default option using a child element but I want that inclusion to be conditional specified with a ng-if directive, then ng-options will duplicate all of the options. If I use ng-show instead of ng-if, all works as I would expect. See the following plunker: http://plnkr.co/edit/eXkvYQvsyPKEjPKEndhZ?p=preview
The text was updated successfully, but these errors were encountered: