소스 검색

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;