diff --git a/frappe/public/js/frappe/ui/sidebar.js b/frappe/public/js/frappe/ui/sidebar.js index d5d018da7a..e40dc83745 100644 --- a/frappe/public/js/frappe/ui/sidebar.js +++ b/frappe/public/js/frappe/ui/sidebar.js @@ -48,9 +48,14 @@ frappe.ui.Sidebar = class Sidebar { this.$sidebar = this.wrapper.find(".sidebar-items"); this.wrapper.find(".body-sidebar .collapse-sidebar-link").on("click", () => { + if (frappe.is_mobile()) this.apps_switcher.app_switcher_menu.toggleClass("hidden"); this.toggle_sidebar(); }); + this.wrapper.find(".overlay").on("click", () => { + this.close_sidebar(); + }); + this.apps_switcher = new frappe.ui.AppsSwitcher(this); this.apps_switcher.create_app_data_map(); }