Always autocomplete creators in hideEditor (#2516)

This commit is contained in:
Abe Jellinek 2022-04-10 21:21:14 -07:00 committed by GitHub
parent 47a2f3cad9
commit be0b0a7151
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1821,6 +1821,12 @@
<parameter name="textbox"/>
<body><![CDATA[
return (async function () {
// Handle cases where creator autocomplete doesn't trigger
// the textentered and change events handled in showEditor
if (textbox.getAttribute('fieldname').startsWith('creator-')) {
this.handleCreatorAutoCompleteSelect(textbox);
}
Zotero.debug(`Hiding editor for ${textbox.getAttribute('fieldname')}`);
var label = Zotero.getAncestorByTagName(textbox, 'row').querySelector('label');