-
-
Notifications
You must be signed in to change notification settings - Fork 536
Description
Bug description
This one's a bit odd, because I don't know if it's this package or FullCalendar causing the issue. When using react-tooltip (as a global Tooltip object) with FullCalendar, only the first view's events will render tooltips. If I'm looking at a month view, the first month will render correctly. But for any other month other than the starting month, no tooltips render. (This happens with other FC views as well.) Looking in the inspector, no element appears in the DOM when hovering events in time periods outside the default. I've provided a CodeSandbox.
I saw that there used to be a rebuild() method in previous versions that's been deprecated in V5. Is there still a way to access that behavior, assuming it might fix the problem?
Version of Package
v5.30.0
To Reproduce
See the CodeSandbox minimal version here. Make sure the first two events are today, and the next two events are the following month (such that they don't render on the first month view). Hover the events in the current month, and the tooltips render; use the arrow buttons in the upper right to go to the next month, and the tooltips don't render.
To see the bug on more than one FC view, remove dayGridPlugin from the plugins list, and make sure you have two events happening on two different days for the resourceTimelinePlugin to show the issue correctly.
Expected behavior
Tooltips render on every hovered event. Instead, they only show up for events rendered in the first view.
Desktop (please complete the following information if possible or delete this section):
- OS: Mac OS 12
- Browser: Firefox v143
- Frameworks: React v18, FullCalendar v6.1.18