Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beforeEventSelectionChange listener doesn't have the right parameters #6408

Open
marciogurka opened this issue Mar 20, 2023 · 0 comments
Open
Labels
bug Something isn't working forum Issues from forum OEM OEM customer

Comments

@marciogurka
Copy link

Forum post

"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
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

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)
});


```"
@marciogurka marciogurka added bug Something isn't working forum Issues from forum OEM OEM customer labels Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum OEM OEM customer
Projects
None yet
Development

No branches or pull requests

1 participant