Our pure JavaScript Scheduler component


Post by striker »

We are using async finalizing D&D in beforeEventDropFinalize event.
While any popup is displayed on computer or you just change tab in your browser while D&D - SchedulerPro is stopping working.

We are concerned that it will not work in our clients.

I prepared test case for this issue.

gif:

switchingtabserror.gif
switchingtabserror.gif (888.13 KiB) Viewed 489 times

problem in:

    this.schedulerInstance.on('beforeEventDropFinalize', async (event: any) => {
      event.context.async = true;

   // HERE IS A PROBLEM
  await this.sleep(2000);

  event.context.finalize(true);
})
testcase.zip
(158.28 KiB) Downloaded 45 times

Latest SchedulerPro - 4.2.6
Google Chrome browser (latest)


Post by mats »

Tried to reproduce but failed. Are you on Windows?


Post by striker »

Yes, windows 10.

You need to start drag task. While dragging - please ALT+TAB to change tab on browser, then click right mouse button to change focus. After this back to scheduler and just drop the task. It is reproducable always on Windows 10 with using any browser (I tried on edge and firefox) - on develop version and after build and put on server.


Post by Maxim Gorkovsky »

Hello.
Reproduced, ticket opened here: https://github.com/bryntum/support/issues/3472 Thank you for report


Post by striker »

Thanks!


Post Reply