fix hide actions menu when mouse not hover on the menu

pull/2869/head
abarrau 2023-12-27 14:18:22 +01:00
rodzic b251fc4d6b
commit 9c8271c119
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -609,6 +609,12 @@ function showQsoActionsMenu(_this) {
'left': eOffset.left - _dropdownMenu.width() + _this.find('.dropdown-toggle').outerWidth(),
'display': 'block',
});
_dropdownMenuClone.off('mouseenter').on('mouseenter', function () {
_dropdownMenuClone.attr('data-mouseenteronmenu','1');
});
_this.off('mouseleave').on('mouseleave', function () {
setTimeout(function(){ if (_dropdownMenuClone.attr('data-mouseenteronmenu')!='1') { _dropdownMenuClone.remove();} }, 200);
});
_dropdownMenuClone.off('mouseleave').on('mouseleave', function () {
$(this).remove();
});