Skip to content

Commit 55adbc2

Browse files
adding track by to dynamic selects.
1 parent fb6745a commit 55adbc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/builder/mw-form-question-builder.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="form-group mw-question-type" ng-repeat="opt in ctrl.options.additionalSelects">
2525
<mw-label label-for="question-{{opt.key}}-{{ctrl.id}}" label-class="col-sm-2 control-label" label-key="{{opt.label}}"></mw-label>
2626
<div class="col-sm-10 form-inline">
27-
<select ng-attr-id="question-{{opt.key}}-{{ctrl.id}}" ng-options="sel.label for sel in opt.selects" ng-model="ctrl.question[opt.key]" class="form-control" ng-disabled="ctrl.readOnly" required></select>
27+
<select ng-attr-id="question-{{opt.key}}-{{ctrl.id}}" ng-options="sel.label for sel in opt.selects track by sel.key" ng-model="ctrl.question[opt.key]" class="form-control" ng-disabled="ctrl.readOnly" required></select>
2828

2929
</div>
3030
</div>

0 commit comments

Comments
 (0)