From c485a287bb60bb8da3ca2a4bbb1888ba32dd961c Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 2 Mar 2023 16:46:30 +0100 Subject: [PATCH] Let et2Select be clickable on top user menu --- api/js/framework/fw_desktop.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/js/framework/fw_desktop.js b/api/js/framework/fw_desktop.js index abec32be6b..8d060ac88c 100644 --- a/api/js/framework/fw_desktop.js +++ b/api/js/framework/fw_desktop.js @@ -479,7 +479,8 @@ import "sortablejs/Sortable.min.js"; if (!$menu.is(":visible")) { $body.on('click', function(e){ - if (e.target.id != 'topmenu_info_user_avatar' && jQuery(e.target).parents('#topmenu_info_user_avatar').length < 1) + if (e.target.id != 'topmenu_info_user_avatar' && jQuery(e.target).parents('#topmenu_info_user_avatar').length < 1 + && e.target.nodeName && e.target.nodeName != 'ET2-SELECT') { jQuery(this).off(e); $menu.toggle();