From 3e008c472b3273bb0739404864671fbfd821259c Mon Sep 17 00:00:00 2001 From: lxsang Date: Thu, 25 Apr 2019 12:28:39 +0200 Subject: [PATCH] fix bug on the new firefox that fired menucontext and onclick at the sametime --- src/core/tags/afx-menu.tag | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/tags/afx-menu.tag b/src/core/tags/afx-menu.tag index 4d1f7aa..836f542 100644 --- a/src/core/tags/afx-menu.tag +++ b/src/core/tags/afx-menu.tag @@ -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]