From 41eec541160ec4687e79b7e57265272876abc18e Mon Sep 17 00:00:00 2001 From: bt-shautz Date: Mon, 13 Jun 2022 10:10:20 +0200 Subject: [PATCH] [bt#19319] Add Custom Filter Adding commit to fix this behavior on older v10 instance. --- addons/web/static/lib/jquery/jquery.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/web/static/lib/jquery/jquery.js b/addons/web/static/lib/jquery/jquery.js index e237564d01b5be..03e07508ca1550 100644 --- a/addons/web/static/lib/jquery/jquery.js +++ b/addons/web/static/lib/jquery/jquery.js @@ -4666,8 +4666,11 @@ jQuery.event = { // Find delegate handlers // Black-hole SVG instance trees (#13180) - // Avoid non-left-click bubbling in Firefox (#3861) - if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { + // ODOO CHANGE: https://github.com/brain-tec/odoo/commit/35f39cf07e9ec3914b2fc36ddca857e486d3f4fb + // Support: Firefox<=42+ + // Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343) + if ( delegateCount && cur.nodeType && + ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) { /* jshint eqeqeq: false */ for ( ; cur != this; cur = cur.parentNode || this ) {