www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 590649fd49977612544d926be5674965d6abdbee
parent bdd44e9a445265b984389b9e0b21f42536049b9b
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon,  4 May 2015 00:51:30 -0400

Ignore blur events from html:textarea

If a new item is created manually when a text field is already open, the
hideEditor is run first on the html:textarea before bubbling up to the
textbox. During a normal blur, the event only happens on the textbox,
though I haven't looked into the reason for the difference.

Diffstat:
Mchrome/content/zotero/bindings/itembox.xml | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml @@ -1682,6 +1682,8 @@ <parameter name="textbox"/> <body><![CDATA[ return Zotero.spawn(function* () { + if (textbox.localName == 'textarea') return; + Zotero.debug('Hiding editor'); // Prevent autocomplete breakage in Firefox 3