Premium support for our pure JavaScript UI components


Post by belms »

Hi Team,

When we transition forward or backward through a date picker in Bryntum gantt, we see that the code looks for a callback function and executes it.

We have a window.callback defined for a different purpose which gets called whenever we move through the date picker, and throws an error.

Can this be fixed?

I see this behavior in the latest version of bryntum gantt as well (Please check the video for recreation). Since we are on a older version, is there a way we can override this?

Attachments
Screen Recording 2024-08-06 at 09.12.50.mov
(21.67 MiB) Downloaded 10 times

Post by Animal »

No code attempts to execute window.callback

Can you stop the code in the debugger and examine the call stack and see what code is at the base and doing this? This seems like a scoping issue. Something is being called with no thisObj and so usage of this inside there is using the window instance.


Post by Animal »

I've reproduced it using the video. Will create a ticket when I have tracked its cause.


Post by Animal »


Post by belms »

Hi,

Attaching a screenshot with debugger at the exact place where this is getting called

we just have something like

export const columnsData = [
    { type: 'startdate', text: 'Start', editor: { autoExpand: true } },
    { type: 'enddate', text: 'Finish', editor: { autoExpand: true } },
];

which is then used in ganttConfig as

 columns: columnsData,

Not sure where to apply a different scope

Attachments
Screenshot 2024-08-05 at 21.09.48.png
Screenshot 2024-08-05 at 21.09.48.png (251.74 KiB) Viewed 248 times

Post by belms »

Animal wrote: Tue Aug 06, 2024 8:48 am

We'll get this fixed soon: https://github.com/bryntum/support/issues/9754

Thank you


Post by deepak.jayaram »

Hey Team,

We're currently on version 5.6.8 and can't upgrade to 6.0.0 for a couple of months. Is there a short-term code override we can apply to fix or patch this?


Post by mats »

Fix is already getting merged tomorrow, so you can use the nightly build on Monday (or wait for 6.0.5). Will that work for you?


Post Reply