Skip to content

Commit

Permalink
hotfix: fix event listener for datepicker (#1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen authored Apr 5, 2024
1 parent 24beb57 commit ce9ee94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/js/time-controls/time-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ export class TimeControls {
}

export function init() {
const $ = window.jQuery;
$(document).on("load", () => {
window.addEventListener("load", () => {
const formDataEl = document.getElementById("form-data");

if (!formDataEl) return;
Expand Down

0 comments on commit ce9ee94

Please sign in to comment.