fix: avoid closing filter popover on any date picker interactions
This commit is contained in:
parent
0a9f6ca4e7
commit
8315d2ac3e
1 changed files with 1 additions and 5 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue