FullCalendar timeGridWeek 拖动或选择时间段在一天结束时停止工作

FullCalendar timeGridWeek dragging or selecting time slot stops working towards end of day

我同时使用 Fullcalendar timeGridWeek 和 dayGrid。

我可以在两者之间拖动并调整大小或在 timeGridWeek(左边的那个)中拖动。

但是,问题是功能在下午 6 点后或接近一天结束时出现故障,具体取决于屏幕宽度。

我还启用了点击时间段功能。我可以点击直到 13:00。之后的任何东西都停止工作。

如果我将 #container > * 元素设置为 1600px(在我的超宽显示器上)一切正常。

我不明白为什么。

我在带有 MaterialUI 的 React 应用程序中也有这个 运行,它的行为方式相同。我认为这与主题有关,但现在可以看到它用最少的样式做了同样的事情。

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

这可能来自 businessHours 选项,与 eventConstraint: 'businessHours' 选项配对,如果两者设置在一起,则不允许在 businessHours 之外拖动和移动。

所以修补它的方法是删除 eventConstraint 选项(如果你放置了它),或者更改你的 businessHours

显然这是一个已确认的错误:参考此处

https://github.com/fullcalendar/fullcalendar/issues/4503

这里

https://github.com/fullcalendar/fullcalendar/issues/4505