FullCalendar eventClick handler does not work if editable false

The jQuery fullCalendar plugin seems to have problems in editable mode in certain cases. If the eventClick handler is installed and edited, then true, than the eventClick function will not work, only the eventDrop function. If the editable parameter is set to false, the eventDrop function does not work (as expected), but the eventClick function does this. I am not sure where the problem is, is it possible to use the eventClick and eventDrop handler when the editable is correct? Has anyone encountered a similar problem when using the plugin?

$('#calendar').fullCalendar({ .. editable:true, eventClick: function(calEvent, jsEvent, view) { .. // only called if editable is false (?) }, eventDrop: function(event,dayDelta,minuteDelta,allDay,revertFunc) { .. // only called if editable is true (correct) } 
+4
source share
3 answers

At first I thought the jQuery version had something to do with it. Further testing did not confirm this hypothesis. It turns out that the click handler only works if you have disabled resizing with disableResizing:true , i.e. If the editable value is true ( editable:true ), then the click event is disableResizing:true only when the size is disabled ( disableResizing:true ). It is possible that resize and click events somehow affect each other.

+4
source

It seems that using jQuery 1.3.2 caused this problem, and a newer version of jQuery will fix this problem.

+1
source

I also had the editable: true option, and instead I fixed it by installing jQuery user interface modules:

  • Draggable (no droppable module required)
  • Resizable
0
source

Source: https://habr.com/ru/post/1393414/


All Articles