Open aauronn opened 8 years ago
@aauronn this is not issue with ng-table. But yes, there is an issue with demo.
function resetRow
(line 42) in demo is returning incorrect row, that should be changed to:
function resetRow(row, rowForm){
row.isEditing = false;
rowForm.$setPristine();
self.tableTracker.untrack(row);
return _.findWhere(originalData, {id: row.id});
}
I've lost 1 hour trying to figure it out. Published Demo still have this bug. Perhaps a PR is needed. :')
any one knows why does tableTracker.untrack(row) is not working on this issue?
Whenever you enable a row to edit, and then cancel, it takes the value of the first row.