ng-table icon indicating copy to clipboard operation
ng-table copied to clipboard

In line editing

Open aauronn opened this issue 9 years ago • 4 comments

Whenever you enable a row to edit, and then cancel, it takes the value of the first row.

aauronn avatar Sep 13 '16 14:09 aauronn

@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});
    }

anuja-joshi avatar Sep 21 '16 08:09 anuja-joshi

Here is link to the codepen(forked from the current in-line editing demo's codepen) which has resolved this in-line editing issue from the demo.

anuja-joshi avatar Sep 21 '16 09:09 anuja-joshi

I've lost 1 hour trying to figure it out. Published Demo still have this bug. Perhaps a PR is needed. :')

roccomuso avatar Oct 24 '16 14:10 roccomuso

any one knows why does tableTracker.untrack(row) is not working on this issue?

nvbugtong avatar Mar 08 '17 06:03 nvbugtong