shlomiassaf/ngrid

Columns with transform throw and break grid

Closed this issue · 2 comments

What is the expected behavior?

grid should work with transformed columns

What is the current behavior?

grid breaks and throws error in deepPathGet because this being passed is undefined. should replace this with col

return col.transform(deepPathGet(row, this), row, this);

What are the steps to reproduce?

https://stackblitz.com/edit/pebula-ngrid-starter-vg2c8x?file=app/app.component.ts
added transform to all columns, you can see that no value is being passed, change the transform to return col and you'll see its not the real col

locally, I receive this error
image

Which versions of Angular, CDK, Material, NGrid, OS, TypeScript, browsers are affected?

angular: 11
ngrid: 3.0.0

Is there anything else we should know?

duplicate of #158

@ronnetzer Release 3.0.1, thank you