[IMP] web: Hovering out of a systray menu item closes its submenus dropdown
While hovering in the systray a menu dropdown can only be open if user currently on his parent menu. It should close when user hover on another systray menu. Task: #1959678 closes odoo/odoo#32322 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
This commit is contained in:
committed by
Vincent Schippefilt
parent
04b4818d84
commit
b3aab58a59
@@ -226,7 +226,10 @@ var Menu = Widget.extend({
|
||||
var $target = $(ev.currentTarget);
|
||||
var $opened = $target.siblings('.show');
|
||||
if ($opened.length) {
|
||||
$opened.find('[data-toggle="dropdown"]').dropdown('toggle');
|
||||
$opened.removeClass('show');
|
||||
$target.find('[data-toggle="dropdown"]').dropdown('toggle');
|
||||
$target.addClass('show');
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user