Premium support for our pure JavaScript UI components


Post by guillaume.morin »

I get a javascript error when I issue a load() while there are pending changes.

I can reproduce using this example:
https://bryntum.com/products/schedulerpro/examples/dependencies/

Add this button in the tbar:

{
   type     : 'button',
   text : 'Refresh',
   onAction : () => scheduler.project.load()
}

Open browser debugger console, drag and move any event, then click the refresh button.

It show this javascript error, and the scheduler is now unresponsive to drag&drop or resize event:

2023-03-22_16-33.png
2023-03-22_16-33.png (31.83 KiB) Viewed 122 times

Post by marcio »

Hey guillaume.morin,

The load method, as you'll see here, doesn't work like you set in your code https://bryntum.com/products/schedulerpro/docs/api/Scheduler/data/mixin/ProjectCrudManager#function-load

Best regards,
Márcio


Post by guillaume.morin »

Hello marcio,

I'm sorry I don't understand what do you mean.

What is wrong with this code ?

It works fine prior to dragging events.

scheduler.project.load()

Post by marcio »

Hello,

Sorry, I misunderstood your code, I reproduced that behavior, thanks for the detailed report. Here it is the ticket to fix that https://github.com/bryntum/support/issues/6444

Best regards,
Márcio


Post Reply