React-big-calendar: Bug - Drag&Drop resizes events

Created on 14 Oct 2019  路  5Comments  路  Source: jquense/react-big-calendar

Bug - Drag&Drop resizes events

  • When dragging an event sometimes it resizes. It happens in two latest versions (0.22.1, 0.22.0).
  • It works fine in version 0.21.0, but it uses old unsave lifecycle methods componentWillReceiveProps and componentWillMount which without UNSAFE_ prefix won't work in React version 17.
  • Can you please fix this bug?

react-big-calendar-bug

  • I cloned the component's repozitory and run it (link). But it doesn't work either in my testing project.
  • version: 0.22.1
  • Opera, Chrome, Mozilla Firefox on Ubuntu Budgie

Most helpful comment

That's still not fixed, every import of react-big-calendar is using ^4.0.1 version of date-arithmetic.
Changing it manually to 3.1.0 on package-lock.json doesn't help, either add "resolutions": { "date-arithmetic": "3.1.0" }, to package.json doesn't help

All 5 comments

There is a workaround for the resize issue from:
https://github.com/intljusticemission/react-big-calendar/issues/1387#issuecomment-531465438

You can also add the the specific version in the resolutions of the package.json:

 "resolutions": {
        "date-arithmetic": "3.1.0"
  },

It works!!! :tada: :tada: :tada:
Thank you very much! :+1:

That's still not fixed, every import of react-big-calendar is using ^4.0.1 version of date-arithmetic.
Changing it manually to 3.1.0 on package-lock.json doesn't help, either add "resolutions": { "date-arithmetic": "3.1.0" }, to package.json doesn't help

Hello,

Is this problem resolved? Can we remove the dependency on "date-arithmetic": "3.1.0"

Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

npalansky picture npalansky  路  3Comments

KatiaPosPago picture KatiaPosPago  路  3Comments

Beyazatli picture Beyazatli  路  3Comments

ZacharyLangley picture ZacharyLangley  路  3Comments

mathieusanchez picture mathieusanchez  路  4Comments