fix bug on the new firefox that fired menucontext and onclick at the sametime

This commit is contained in:
lxsang 2019-04-25 12:28:39 +02:00
parent 10024d8613
commit 3e008c472b

View File

@ -118,11 +118,15 @@
{
if(opts.context == "true")
{
if(event.button == 2 || event.originalEvent.button == 2)
{
return
}
if(!$(event.target).closest(self.root).length) {
$(self.root).hide()
$(document).unbind("click",mnhide)
}
return;
return
}
if(!$(event.target).closest(self.refs.container).length && self.refs.container) {
var arr = self.refs.container.length?self.refs.container:[self.refs.container]