浏览代码

Hack to force fullCalendar scrollTime option to work as expected

Vijayakrishnan 3 年之前
父节点
当前提交
b288cf0d0a
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      resources/views/app/patient/appointment-calendar.blade.php

+ 5 - 0
resources/views/app/patient/appointment-calendar.blade.php

@@ -655,6 +655,11 @@
                                  }
                             });
                             this.calendar.render();
+
+                            // ugly fix/hack to force scrollTime option to work
+                            setTimeout(() => {
+                                $('.fc-timeGridWeek-button').click();
+                            }, 750);
                         },
                         afterRenderingEvents: function() {
                             let self = this;