flatpickr: Add close_all function to close all the opened date pickers.

This commit is contained in:
Satyam Bansal
2023-05-10 23:04:19 +05:30
committed by Tim Abbott
parent c486588360
commit 557d80965c

View File

@@ -134,3 +134,7 @@ export function show_flatpickr(element, callback, default_timestamp, options = {
return instance;
}
export function close_all() {
$(".flatpickr-calendar").removeClass("open");
}