contextmenu fix for chromebook

otherwise contextmenu closes before user can select an item (probably has to do with touch(pad))
This commit is contained in:
Coder of Salvation / Leon van Kammen
2018-02-08 20:40:14 +01:00
committed by GitHub
parent 2e16b6560a
commit f311296f2e

View File

@@ -5883,6 +5883,7 @@ ContextMenu.prototype.addItem = function( name, value, options )
ContextMenu.prototype.close = function(e, ignore_parent_menu)
{
if( e != undefined && e.which == 0 ) return
if(this.root.parentNode)
this.root.parentNode.removeChild( this.root );
if(this.parentMenu && !ignore_parent_menu)