mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
flatpickr: Add close_all function to close all the opened date pickers.
This commit is contained in:
committed by
Tim Abbott
parent
c486588360
commit
557d80965c
@@ -134,3 +134,7 @@ export function show_flatpickr(element, callback, default_timestamp, options = {
|
|||||||
|
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function close_all() {
|
||||||
|
$(".flatpickr-calendar").removeClass("open");
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user