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:
parent
bdd44e9a44
commit
590649fd49
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue