if (document.querySelector("[datetimepicker]")) { flatpickr("[datetimepicker]", { allowInput: true, }); // flatpickr }