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

Drag and drop feature of react-big-calendar stopped working in version 10.10.x #3673

Closed
lomber1 opened this issue Aug 17, 2022 · 2 comments
Closed

Comments

@lomber1
Copy link

lomber1 commented Aug 17, 2022

  • [ x ] Check if updating to the latest Preact version resolves the issue

Describe the bug
Hi,

I updated preact to version 10.10.x and drag and drop feature of react-big-calendar (1.5.0) stopped working properly. Dragging and resizing works only on the second try (it just "ignores" being dragged on first try). In versions prior to 10.10.x everything worked correctly.

I'm attaching code sandboxes with both versions and videos of issue.

Thanks.

10.9.0.mp4
10.10.x.mp4

To Reproduce
Steps to reproduce the behavior:

  1. Go to the working version first
  2. Try dragging some event around, it should "just work". Note that when dropped, event won't change its position and this is intentional, as state management is not necessary in this example. The thing that matters is that events can be dragged.
  3. Go the broken version
  4. Do the same thing as in step 2, just drag some events.
  5. You should immediately notice the difference, events can't be dragged, they become draggable only on second try.

Expected behavior
Dragging in react-big-calendar should work just like in previous versions.

@JoviDeCroock
Copy link
Member

This seems related to #3608 as doing the following change makes everything work correctly:

options.debounceRendering = Promise.prototype.then.bind(Promise.resolve())

@lomber1
Copy link
Author

lomber1 commented Aug 31, 2022

Yes, this solution solved the problem, thanks.

@lomber1 lomber1 closed this as completed Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants