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" <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)"/> oninput="window.setTimeout(function(event) { Zotero_QuickFormat.onCitationPropertiesChanged(event) }, 0)"/>
<html:div> <html:div>
<html:input type="checkbox" id="suppress-author" native="true" tabindex="7" <checkbox type="checkbox" id="suppress-author" native="true" tabindex="7"
onchange="Zotero_QuickFormat.onCitationPropertiesChanged(event)"/> oncommand="Zotero_QuickFormat.onCitationPropertiesChanged(event)"
<html:label for="suppress-author"> label="&zotero.citation.suppressAuthor.label;"/>
&zotero.citation.suppressAuthor.label;
</html:label>
</html:div> </html:div>
</html:div> </html:div>
<vbox flex="1" align="center"> <vbox flex="1" align="center">