Skip to content

Commit

Permalink
fix: consider all datepicker elements (#25426)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6d89d54)
  • Loading branch information
ankush authored and mergify[bot] committed Mar 14, 2024
1 parent b957154 commit 361fbfe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frappe/public/js/frappe/ui/filters/filter_list.js
Expand Up @@ -64,7 +64,12 @@ frappe.ui.FilterGroup = class {
set_popover_events() {
$(document.body).on("click", (e) => {
if (this.wrapper && this.wrapper.is(":visible")) {
const in_datepicker = $(e.target).parents(".datepicker").length;
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).parents(".datepicker").length !== 0 ||
$(e.target).is(".datepicker--button");

if (
$(e.target).parents(".filter-popover").length === 0 &&
Expand Down

0 comments on commit 361fbfe

Please sign in to comment.