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

Events disappear when spanning multiple days in Month view #2658

Open
islami00 opened this issue Sep 26, 2024 · 0 comments
Open

Events disappear when spanning multiple days in Month view #2658

islami00 opened this issue Sep 26, 2024 · 0 comments

Comments

@islami00
Copy link
Contributor

islami00 commented Sep 26, 2024

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

The problem I faced is the same as these issues:

This happens in the month view, when there are:

  • Multiple events shown on the beginning of the week
  • and An event spans multiple days but is not among the first few events (including the + [n] show more).

That event does not get rendered for the other days it spans unless it is among the first few events (including the + [n] show more) to be truncated.

Here is the diff that solved my problem:

diff --git a/node_modules/react-big-calendar/dist/react-big-calendar.esm.js b/node_modules/react-big-calendar/dist/react-big-calendar.esm.js
index 771b698..4fa6c41 100644
--- a/node_modules/react-big-calendar/dist/react-big-calendar.esm.js
+++ b/node_modules/react-big-calendar/dist/react-big-calendar.esm.js
@@ -1646,7 +1646,7 @@ var EventEndingRow = /*#__PURE__*/function (_React$Component) {
       var _this$props = this.props,
         segments = _this$props.segments,
         slots = _this$props.slotMetrics.slots;
-      var rowSegments = eventLevels(segments).levels[0];
+      var rowSegments = segments;
       var current = 1,
         lastEnd = 1,
         row = [];

This issue body was partially generated by patch-package.

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

1 participant