-
Notifications
You must be signed in to change notification settings - Fork 1.8k
track by $index broken with angular 1.5 #1522
Comments
Cross-linking #1525 - they are identical, although I add a Plunker reproduction. I noticed this in my work app, and it caused some QA automation to fail. |
From #1525
From editing the plunkr it looks like using If someone beats me to it with a working PR (incl. provided test) I'll be happy to merge |
So the change works but annoyingly the test only works in isolation ( |
The id attribute on ui-select-choices-row is no longer interpolated correctly when using ui select with angular v1.5+. This change switches to using ng-attr-id to ensure the id value is correctly interpolated before being assigned to the element. Fixes angular-ui#1522
The id attribute on ui-select-choices-row is no longer interpolated correctly when using ui select with angular v1.5+. This change switches to using ng-attr-id to ensure the id value is correctly interpolated before being assigned to the element. Fixes angular-ui#1522
The id attribute on ui-select-choices-row is no longer interpolated correctly when using ui select with angular v1.5+. This change switches to using ng-attr-id to ensure the id value is correctly interpolated before being assigned to the element. Fixes angular-ui#1522
Bug description:
When using
track by $index
for therepeat
attribute, with angular < 1.5, ui-select used to generate an id of the formNow, with angular 1.5(.2) we get :
The last digit is missing. It should be replace by the value of
$index
, but$index is undefined
.I’ve written a test for the issue :
gorghoa/ui-select@d627eef45755d7ac0e4c81a231989f576d0512c8
The test is ok with angular 1.4.10, broken with 1.5
Version of Angular, UI-Select, and Bootstrap/Select2/Selectize CSS
Angular: 1.5.2
Let me know if I can do more.
thanks!
The text was updated successfully, but these errors were encountered: