From 513fa6f75605eae6df8b9f5d423884c4ec15d3e7 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 13 Jun 2012 16:43:08 +0100 Subject: [PATCH] Fixed problem with tag dropdowns in Firefox --- core/modules/macros/button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/macros/button.js b/core/modules/macros/button.js index 62747b366..ab0e6b103 100644 --- a/core/modules/macros/button.js +++ b/core/modules/macros/button.js @@ -68,7 +68,7 @@ exports.handleEvent = function(event) { event.preventDefault(); return false; case "tw-cancel-popup": - if(this.hasParameter("popup") && !$tw.utils.domContains(this.domNode,event.targetOfCancel)) { + if(this.hasParameter("popup") && this.domNode !== event.targetOfCancel && !$tw.utils.domContains(this.domNode,event.targetOfCancel)) { this.triggerPopup(event,true); } break;