From 0746f520e46873bd026a4757294b1cdc4105fb41 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 10 Mar 2016 07:03:41 -0500 Subject: [PATCH] Fix broken Abstract/Extra editing in Firefox 45 --- chrome/content/zotero/bindings/itembox.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index 11ffeacd0c..647f13eb83 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -1375,6 +1375,12 @@ this._dynamicFields.focus(); } + // In Firefox 45, when clicking a multiline field such as Extra, the event is + // triggered on the inner 'description' element instead of the 'vbox'. + if (elem.tagName == 'description') { + elem = elem.parentNode; + } + Zotero.debug('Showing editor'); var fieldName = elem.getAttribute('fieldname');