当前有一个问题,当单击排序时,按行排列数组中具有 formControls 的列,数据和控件未正确更新。所有其他列都按预期更新。下面是具有 formControls 的代码:
<form [formGroup]="rackAverageForms[i]">
<md-input-container>
<input [formControl]="rackAverageForms[i].controls.rackAverage" #rackAverage
formControlName="rackAverage"
(keydown.tab)="validateRackAverage(rackAverage,i)" class="numeric-field" [numberOnly]="true"
mdInput value="{{row.chosenDateRackAverage | currency:'USD':true:'1.4-4'}}">
<md-error><strong>{{formErrors[i].rackAverage}}</strong></md-error>
</md-input-container>
</form>
这是排序前的截图: md-table view before trying to sort
这是排序后数据消失了: md-table view after sorted with missing data
有时会保留一个值,但大多数时候此列中的所有值都已消失,控件也已消失。请帮忙。