Fix broken Abstract/Extra editing in Firefox 45

This commit is contained in:
Dan Stillman 2016-03-10 07:03:41 -05:00
parent e3d03ca380
commit 0746f520e4

View file

@ -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');