Skip to content

Commit

Permalink
fix: avoid closing filter popover on any date picker interactions
Browse files Browse the repository at this point in the history
(cherry picked from commit 8315d2a)
  • Loading branch information
ankush authored and mergify[bot] committed Mar 14, 2024
1 parent 39796ea commit 0784e61
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions frappe/public/js/frappe/ui/filters/filter_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 0784e61

Please sign in to comment.