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

[REACT] Renderer is not called during event drag #7569

Open
jsakalos opened this issue Sep 26, 2023 · 3 comments
Open

[REACT] Renderer is not called during event drag #7569

jsakalos opened this issue Sep 26, 2023 · 3 comments
Labels
feature request forum Issues from forum premium react React framework integration

Comments

@jsakalos
Copy link

It would be beneficial in some applications if the renderer would be called also during event drag to show updated dates, for example. This feature should probably be configurable as it may have negative impact on performance.

Forum post

Hey guys,
I'm using a custom event renderer in react. While dragging/resizing the event I need to update the time information inside my component. Similar to whats done here https://bryntum.com/products/schedulerpro/examples-scheduler/frameworks/react/javascript/react-events/build/ but I need to update the time while I'm dragging/resizing. Similar to what you are doing on the tooltip. So that I can give the user a preview of what time he will select. I hoped that this is passed via the props, but the props seems to not updating while dragging/resizing. Someone a hint for me how I could achieve that?

@jsakalos jsakalos added bug Something isn't working premium forum Issues from forum feature request react React framework integration and removed bug Something isn't working labels Sep 26, 2023
@taauntik
Copy link

Some more words from the user

Hey Saki, I just realized that this is a general thing. Dates are also not updated when you just resized the event. So not only while you resize but also when the resize ends. You can see that also here https://www.bryntum.com/products/scheduler/examples/frameworks/react/javascript/react-events/build/

On drag everything works like expected.

@mightym
Copy link

mightym commented Sep 28, 2023

@taauntik @jsakalos thanks! But I think the latter is a bug and not a feature request. The eventRecord prop should hold the correct data. At least when the resizing is done. Currently the evenRecord only updates on drag end.

@taauntik
Copy link

Here is the ticket #7585

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request forum Issues from forum premium react React framework integration
Projects
None yet
Development

No branches or pull requests

3 participants