Correct flatpickr positioning issue on modals

This commit is contained in:
Alex Tselegidis 2023-02-20 08:09:03 +01:00
parent 0d52732489
commit efb9fda649

View file

@ -175,6 +175,7 @@ window.App.Utils.UI = (function () {
allowInput: true, allowInput: true,
dateFormat: getDateFormat(), dateFormat: getDateFormat(),
locale: getFlatpickrLocale(), locale: getFlatpickrLocale(),
static: true,
...params ...params
}); });
} }
@ -195,6 +196,7 @@ window.App.Utils.UI = (function () {
dateFormat: getTimeFormat(), dateFormat: getTimeFormat(),
time_24hr: vars('time_format') === 'military', time_24hr: vars('time_format') === 'military',
locale: getFlatpickrLocale(), locale: getFlatpickrLocale(),
static: true,
...params ...params
}); });
} }