shlomiassaf / ngrid

A angular grid for the enterprise
https://shlomiassaf.github.io/ngrid
MIT License
240 stars 39 forks source link

Sticky columns set through directive cannot be "un-sticked" #271

Open romgerman opened 1 year ago

romgerman commented 1 year ago

What is the expected behavior?

Passing an empty array into stickyColumnStart should reset sticky columns set with directive

What is the current behavior?

Passing an empty array into stickyColumnStart does nothing

What are the steps to reproduce?

https://stackblitz.com/edit/pebula-ngrid-starter-3ecjhm?file=src/app/app.component.ts

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

Angular 14.2.5, CDK 14.2.4, NGrid 5.0.0, OS Windows 10, TypeScript 4.7.2

Chrome 108.0.5359.126, Firefox 108.0.2

romgerman commented 1 year ago

Workaround is to manually set pin for PblColumnDefinition through code.