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

fix: add track by $index to ng-repeat #1688

Merged
merged 1 commit into from
Jun 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/bootstrap/match-multiple.tpl.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<span class="ui-select-match">
<span ng-repeat="$item in $select.selected">
<span
<span ng-repeat="$item in $select.selected track by $index">
<span
class="ui-select-match-item btn btn-default btn-xs"
tabindex="-1"
type="button"
Expand Down
2 changes: 1 addition & 1 deletion src/select2/match-multiple.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
do not work: [class^="select2-choice"]
-->
<span class="ui-select-match">
<li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected"
<li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected track by $index"
ng-class="{'select2-search-choice-focus':$selectMultiple.activeMatchIndex === $index, 'select2-locked':$select.isLocked(this, $index)}"
ui-select-sort="$select.selected">
<span uis-transclude-append></span>
Expand Down