Răsfoiți Sursa

Hack to force fullCalendar scrollTime option to work as expected

Vijayakrishnan 3 ani în urmă
părinte
comite
b288cf0d0a

+ 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;