Our pure JavaScript Scheduler component


Post by tomerPlanit »

Hi.
I work with scheduler 4.3.1v with angular 12.

After upgrade to 4.3.1 version from 4.3.0 I stated to get some error in the console:

zone-evergreen.js:172 Uncaught TypeError: Cannot read properties of undefined (reading 'event')
    at EventDrag.onDrag (scheduler.lite.umd.js:152583)
    at DragHelper.trigger (scheduler.lite.umd.js:46445)
    at DragHelper.update (scheduler.lite.umd.js:30378)
    at DragHelper.internalMove (scheduler.lite.umd.js:30308)
    at DragHelper.onMouseMove (scheduler.lite.umd.js:30325)
    at HTMLDocument.handler (scheduler.lite.umd.js:31068)
    at ZoneDelegate.invokeTask (zone-evergreen.js:391)
    at Object.onInvokeTask (core.js:39680)
    at ZoneDelegate.invokeTask (zone-evergreen.js:390)
    at Zone.runTask (zone-evergreen.js:168)

But the flow of drag/drop works fine.

After deep debug I found that the config parameter that make this error is :

constrainDragToTimeline: false

inside the eventDragFeature of the scheduler.

I create some example demo based on drag-between-schedulers.

In my case I not always have more then one scheduler.

For get this error you need to drag event on my example.

What is changed from 4.3.0 to 4.3.1 that make this error?

Attachments
drag-between-schedulers.rar
(644.46 KiB) Downloaded 44 times

Post by sergey.maltsev »

Hi!

Thank you for the information.
It is a bug in API code.
I've created this issue to fix it
https://github.com/bryntum/support/issues/3635


Post Reply