ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Error is thrown when focusing a cell

Open mathiasdose opened this issue 11 years ago • 2 comments

We have identified that the error below is thrown when using dot notation in col.field e.g "1.Blabla". This occurs once you focus the cell. screen shot 2015-08-25 at 09 39 44

The function below is what causing this error and was added in 9532de2bdb083a0bb40a6099924e98893ab354e7

RowCol.prototype.getIntersectionValueRaw = function(){
        var getter = $parse(this.col.field);
        var context = this.row.entity;
       return getter(context);
      };

9532de2bdb083a0bb40a6099924e98893ab354e7

mathiasdose avatar Aug 25 '15 07:08 mathiasdose

Do you have a plunker that I can use for testing? I'll see if I can fix this today.

JLLeitschuh avatar Aug 25 '15 13:08 JLLeitschuh

http://plnkr.co/edit/9ybwvU46hI88uJtqEeWG?p=preview

Just focus any of the cells and you will see the error in the console.

mathiasdose avatar Aug 25 '15 14:08 mathiasdose