bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

[LWC] Exception from the engine when dragging an event #5707

Open bmblb opened 1 year ago

bmblb commented 1 year ago

I’ve been chasing after random Lightning Web Security exceptions and caught one in Scheduler Pro (and Gantt) when an event is dragged. This exception is not surfaced to the user, so it is a minor one. But I still wanted to bring this to your attention. The root cause of it is that when a Quark class instance is created in the static new() method, it is wrapped in a LWS proxy which attempts to access all public properties of the instance and throws a null reference error because all three getters (level, calculation, and context) are reading from this.identifier which is undefined initially. The fix would be a simple null check (identifier?.level , identifier?.calculation, etc)

bmblb commented 1 year ago

Screen Recording 2022-12-05 at 10 25 45