qf: fix suppress author checkbox click (#3832)

Use <checkbox> instead of <html:input type="checkbox"> for the
suppress author checkbox. <html:input> on mousedown on the actual box
looses focus, so the popover is immediately closed by focusout listener.
Fixes: #3830
This commit is contained in:
abaevbog 2024-03-11 17:53:58 -04:00 committed by GitHub
parent 92a04fcffa
commit 844fd98c72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,11 +106,9 @@
<html:input type="text" aria-labelledby="suffix-label" tabindex="6" class="citation-textbox" id="suffix" flex="1"
oninput="window.setTimeout(function(event) { Zotero_QuickFormat.onCitationPropertiesChanged(event) }, 0)"/>
<html:div>
<html:input type="checkbox" id="suppress-author" native="true" tabindex="7"
onchange="Zotero_QuickFormat.onCitationPropertiesChanged(event)"/>
<html:label for="suppress-author">
&zotero.citation.suppressAuthor.label;
</html:label>
<checkbox type="checkbox" id="suppress-author" native="true" tabindex="7"
oncommand="Zotero_QuickFormat.onCitationPropertiesChanged(event)"
label="&zotero.citation.suppressAuthor.label;"/>
</html:div>
</html:div>
<vbox flex="1" align="center">