Page 1 of 1

[ANGULAR] Unpredictable behavior of copy/paste feature.

Posted: Fri Mar 31, 2023 1:28 pm
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.


Re: [ANGULAR] Unpredictable behavior of copy/paste feature.

Posted: Fri Mar 31, 2023 1:51 pm
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


Re: [ANGULAR] Unpredictable behavior of copy/paste feature.

Posted: Fri Mar 31, 2023 4:26 pm
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.


Re: [ANGULAR] Unpredictable behavior of copy/paste feature.

Posted: Sat Apr 01, 2023 1:05 pm
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


Re: [ANGULAR] Unpredictable behavior of copy/paste feature.

Posted: Sat Apr 01, 2023 1:20 pm
by tim8ska

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


Re: [ANGULAR] Unpredictable behavior of copy/paste feature.

Posted: Mon Apr 03, 2023 6:48 am
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.


Re: [ANGULAR] Unpredictable behavior of copy/paste feature.

Posted: Mon Apr 03, 2023 6:56 am
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.


Re: [ANGULAR] Unpredictable behavior of copy/paste feature.

Posted: Mon Apr 03, 2023 8:42 am
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


Re: [ANGULAR] Unpredictable behavior of copy/paste feature.

Posted: Mon Apr 03, 2023 11:16 am
by tim8ska

Hi, thank you. Will wait for 5.3.2 release.