diff --git a/frappe/public/js/frappe/ui/filters/filter_list.js b/frappe/public/js/frappe/ui/filters/filter_list.js index 41d71a6716..f3af6415c5 100644 --- a/frappe/public/js/frappe/ui/filters/filter_list.js +++ b/frappe/public/js/frappe/ui/filters/filter_list.js @@ -64,11 +64,7 @@ frappe.ui.FilterGroup = class { set_popover_events() { $(document.body).on("click", (e) => { if (this.wrapper && this.wrapper.is(":visible")) { - const in_datepicker = - $(e.target).is(".datepicker--cell") || - $(e.target).closest(".datepicker--nav-title").length !== 0 || - $(e.target).parents(".datepicker--nav-action").length !== 0 || - $(e.target).is(".datepicker--button"); + const in_datepicker = $(e.target).parents(".datepicker").length; if ( $(e.target).parents(".filter-popover").length === 0 &&