fullcalendar/fullcalendar-workspace

selectOverlap not called in "Grid" views when using Scheduler plugin

qbuache opened this issue · 3 comments

The handler selectOverlap is not called in any "Grid" view when using the Scheduler plugin.

Example

https://codepen.io/anon/pen/LvMaXJ?editors=0011

As expected, you can't select periods already booked in the "Timeline view", but it wrongfully works on the "Week view".

The console does not report the use of the selectOverlap handler on the "Week view".

Tried

You talked about a manual fix for that bug in an old issue :
#56 (comment)

But there is no "getPeerEvents" function to comment anymore.

FullCalendar and Scheduler 4.1.0

Thank you for your help

Since you are using resources, you should use resourceTimeGrid instead of timeGrid so it will display the resource and selectOverlap also works:

https://codepen.io/anon/pen/mggKZR?editors=0010

Ok using resourceTimeGrid fixes the issue with selectOverlap.

Issue is resolved.

You should add a note in your documentation about the fact that you can't really use non-Scheduler and Scheduler views at the same time.