Page 1 of 1

[ANGULAR] beforeEventSelectionChange listener

Posted: Mon Mar 20, 2023 3:04 pm
by Exigo

Hello,

I have today used the beforeEventSelectionChange listener on the scheduler. However I experienced some issues with seeing the deselected events from the provided event data.

Whenever I deselect anything, the deselected array is empty..

deselect not working.png
deselect not working.png (103.1 KiB) Viewed 167 times

and when I have something selected and select something else, the deselected array contains the same events as the selected array..

select providing wrong data.png
select providing wrong data.png (98.13 KiB) Viewed 167 times

The eventSelectionChange event provides the correct selection, selected and deselected though. But for what I had planned to design I need access to the beforeEventSelectionChange so that I may change the selection in some cases than what is the default expected..
This issue is very easy to reproduce in one of your examples:
https://www.bryntum.com/products/schedulerpro/examples-scheduler/dragselection/
and adding the following code at the end:


scheduler.addListener({
thisObj: this,
beforeEventSelectionChange: (event) => console.log(event)
});


Re: [ANGULAR] beforeEventSelectionChange listener

Posted: Mon Mar 20, 2023 3:30 pm
by marcio

Hey Exigo,

Thanks for the report and detailed step-by-step about how to reproduce, I created a ticket to fix that https://github.com/bryntum/support/issues/6408