Our pure JavaScript Scheduler component


Post by dpontes »

Hello Bryntum team,

It seems that there's a glitch when dragging an event whenever the context of the drag becomes invalid.

Follow the config I've used to reproduce the issue:

features : {
        calendarHighlight : {
            calendar : 'event',
        },
    },

Then I am simulating a case where I make the context.valid false:

beforeEventDropFinalize({ context, ...e }) {
            context.valid = false;
            context.eventRecord.eventStore.beginBatch();
            context.eventRecord.eventStore.endBatch();
        }

The issue happens whenever I try to perform a begin/end batch while having the calendarHighlight feature set.

To reproduce the glitch:

  • Try to move an event to a different timespan (it will jump back to its original position as context.valid is false)

  • Zoom out

  • The event "disappeared". But the truth is that it jumped far away to the right.

  • If I try to move that event again, it will jump back to the original position

    bryntum-begin-end-batch-issue.mp4
    (1.11 MiB) Downloaded 18 times

Post by marcio »

Hey dpontes,

Thanks for the detailed report. What does the event calendar look like? Are you able to share the sample of data that you're using in the video?

Best regards,
Márcio


Post by dpontes »

Hi Marcio, sure I can.

Follow attached the source code used on the video:

drag-from-grid-begin-batch-issue.zip
(2.11 MiB) Downloaded 18 times

Post by marcio »

Hey dpontes,

Thanks for the example again! I created a ticket to check/fix that https://github.com/bryntum/support/issues/6815

Best regards,
Márcio


Post by mats »

Are you able to reproduce this on our latest sources?


Post by dpontes »

Hi Mats, we upgraded to 5.3.5 on may 15th and I believe I was able to reproduce the issue before creating this post, I will double check again though if I still can reproduce the issue.


Post by dpontes »

I can confirm I can reproduce the issue on 5.3.5


Post by marcio »

Hey dpontes,

Thanks for the confirmation, we'll have our team check that soon.

Best regards,
Márcio


Post Reply