Skip to content

Commit

Permalink
fix: Avoid setting filter on now/today button
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Mar 14, 2024
1 parent 6ecac9d commit 51f1a5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frappe/public/js/frappe/ui/filters/filter_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ frappe.ui.FilterGroup = class {
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--nav-action").length !== 0 ||
$(e.target).is(".datepicker--button");

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

0 comments on commit 51f1a5f

Please sign in to comment.