From b2b0bb69bb442f890547173e8727362db2a149d8 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sat, 15 Jul 2023 13:14:04 +0530 Subject: [PATCH] fix: Correct event for sidebar dropdown - Click only gets called first time and not reliable next times - Click will also get called when it's used for collapsing dropdown, which doesn't make sense here. --- frappe/public/js/frappe/list/list_sidebar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/list/list_sidebar.js b/frappe/public/js/frappe/list/list_sidebar.js index debf7a6766..9c395972a7 100644 --- a/frappe/public/js/frappe/list/list_sidebar.js +++ b/frappe/public/js/frappe/list/list_sidebar.js @@ -34,7 +34,7 @@ frappe.views.ListSidebar = class ListSidebar { ) { this.sidebar.find(".list-tags").remove(); } else { - this.sidebar.find(".list-stats").on("click", (e) => { + this.sidebar.find(".list-stats").on("show.bs.dropdown", (e) => { this.reload_stats(); }); }