scania-digital-design-system / tegel

Tegel Design System
https://tegel.scania.com
MIT License
19 stars 14 forks source link

[Bug report]: Console error when drag and drop from one table to another. #533

Open neethusathya124 opened 8 months ago

neethusathya124 commented 8 months ago

Requirements before reporting

Package versions

@scania/tegel-angular: 1.6.1

Browser

Chrome

Framework

Angular

Version

Angular 15.2.0

Reproduction steps

  1. I have two Tegel table (For Eg: Source Table(which has 3 columns) and Target Table(which has more columns than Source Table))
  2. Try to drag and drop Source table row to target table using angular CDK.
  3. Getting console error related to few of the properties 'Can not read properties of null' for reading 'tableId', 'multiselect', 'verticalDividers'

Code example

Screenshots

image

Expected behaviour

There should not be any console error while drag row from one table to another.

Console errors

image

Contact information

neethu.kuzhupully.sathyan@scania.com

theJohnnyMe commented 8 months ago

For developer fixing this one: Issue is probably in lifecycle that assigns tableId and other props only once, it need to happen more often so "new" rows get updated with those props.

ckrook commented 3 days ago

Hi @neethusathya124 , could you please provide us with an example in StackBlitz So we easier can debug this? Many thanks!