mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-21 21:02:02 +01:00
Fix toolbar menulist doesn't get closed after clicking away from it
This commit is contained in:
parent
8db3ecc6cf
commit
fcf195cf47
@ -493,6 +493,17 @@ export class et2_toolbar extends et2_DOMWidget implements et2_IInput
|
||||
tolerance:"touch"
|
||||
});
|
||||
|
||||
toolbox.on('toggle', (e)=>{
|
||||
const details = <HTMLDetailsElement>e.target;
|
||||
if (details.open)
|
||||
{
|
||||
jQuery('html').on('click.outsideOfMenu', function(e){
|
||||
if (e.target != details && e.target != details.firstChild) details.open = false;
|
||||
jQuery('html').unbind('click.outsideOfMenu');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
this.actionlist.droppable({
|
||||
tolerance:"pointer",
|
||||
drop:function (event,ui) {
|
||||
|
Loading…
Reference in New Issue
Block a user