scania-digital-design-system / tegel

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

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

Open neethusathya124 opened 7 months ago

neethusathya124 commented 7 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 7 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.