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.
This commit is contained in:
Dan Stillman 2015-05-04 00:51:30 -04:00
parent bdd44e9a44
commit 590649fd49

View file

@ -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