Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 1770038

Browse files
alexbraduser378230
authored andcommitted
perf(repeatParserService): track groups by name
Use "track by" to track groups of choices by their name instead of the $$hashKey. This way, existing items don't have to be re-rendered when the array of items changes. Closes #1721, closes #1722
1 parent d1994fb commit 1770038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/uisRepeatParserService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ uis.service('uisRepeatParser', ['uiSelectMinErr','$parse', function(uiSelectMinE
7777
};
7878

7979
self.getGroupNgRepeatExpression = function() {
80-
return '$group in $select.groups';
80+
return '$group in $select.groups track by $group.name';
8181
};
8282

8383
}]);

0 commit comments

Comments
 (0)