Our pure JavaScript Scheduler component


Post by msrotate »

I am trying to implement additional functionality to copy/paste, using beforePaste event and notice that, when I click copy on two separate events in sequence and paste these events in one place. At first glance it looks like a multiple copying behavior, but it is always two events and doesn’t matter how many events I was copying. When copying three or more events, only the first and last copied events are pasted.

I attached video that shows this behavior. In my opinion, it looks like a bug.
And you can reproduce this behavior in demo too: https://bryntum.com/products/scheduler/examples/dragfromgrid/
Is there any way how to fix this behavior in order to allow copy/paste single record.

Attachments
2023-03-31 14-26-14.mp4
(10.93 MiB) Downloaded 23 times

Post by tasnim »

Hi,

Thanks for your report. Sounds like a bug. We'll investigate it. Here is the ticket to track progress https://github.com/bryntum/support/issues/6505

All The Best,
Tasnim


Post by mats »

This is working as intended, you have to first select (CTRL-key) and then use context menu and it'll work as you want.


Post by tim8ska »

Hi, Mats,

Not sure it works as intended. The goal is to copy a single item.

Case: you copy one item with context menu accidentally, then copy another one. When pasting, two items are pasted.
When you copy many items (even though you have not intended to), when you paste, the first and the last copied items are placed. Should only be the last one.

It looks like something isn't overwritten in the buffer when sequentially copying items.

Timur


Post by tim8ska »

Please see attached image on how to reproduce bug step-by-step

Attachments
2023-04-01 17_14_50-.jpg
2023-04-01 17_14_50-.jpg (304.46 KiB) Viewed 184 times

Post by tasnim »

Hi,

You need to enable https://bryntum.com/products/scheduler/docs/api/Scheduler/view/Scheduler#config-multiEventSelect
And then, select with CTRL+click and use the context menu or Ctrl+c to copy

It should be working for you.


Post by tim8ska »

tasnim wrote: Mon Apr 03, 2023 6:48 am

Hi,

You need to enable https://bryntum.com/products/scheduler/docs/api/Scheduler/view/Scheduler#config-multiEventSelect
And then, select with CTRL+click and use the context menu or Ctrl+c to copy

It should be working for you.

Hello, I DO NOT need multiEventSelect. I only need one (single) event copying.


Post by tasnim »

Hi,

It is already been fixed here https://github.com/bryntum/support/issues/6105. The fix will be available in the next release 5.3.2


Post by tim8ska »

Hi, thank you. Will wait for 5.3.2 release.


Post Reply