Let et2Select be clickable on top user menu

This commit is contained in:
Hadi Nategh 2023-03-02 16:46:30 +01:00
parent 7314b5ee65
commit c485a287bb

View File

@ -479,7 +479,8 @@ import "sortablejs/Sortable.min.js";
if (!$menu.is(":visible")) if (!$menu.is(":visible"))
{ {
$body.on('click', function(e){ $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); jQuery(this).off(e);
$menu.toggle(); $menu.toggle();