Skip to content

Commit

Permalink
Fixed reason modal input autofocus
Browse files Browse the repository at this point in the history
  • Loading branch information
alima-webdev committed Jul 9, 2024
1 parent 69b024f commit bb6c40d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zotero-review-assistant",
"version": "1.0.2",
"version": "1.0.1",
"description": "Zotero Review Assistant",
"config": {
"addonName": "Zotero Review Assistant",
Expand Down
3 changes: 1 addition & 2 deletions src/ui/pane/columns/reason.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ export function reasonRegisterGlobalFunctions() {
if (reasons.length == 1) {
reasonInput.value = reasons[0];

reasonInput.focus();

// Set the current PRISMA section
// prismaSelect.value =
// (getPRISMASectionFromItem(selectedItems[0]) as PRISMASection)
Expand Down Expand Up @@ -138,6 +136,7 @@ export async function reasonRegisterDOM() {
const reasonInput = reasonModalBody.querySelector(
"#input-reason",
) as HTMLInputElement;
reasonInput.setAttribute("autofocus", "true")
const autocompleteContainer = reasonModalBody.querySelector(
"#input-reason-autocomplete",
) as HTMLDivElement;
Expand Down
2 changes: 1 addition & 1 deletion update-beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"zoteroreviewassistant@alima-webdev.com": {
"updates": [
{
"version": "1.0.2",
"version": "1.0.1",
"update_link": "https://github.com/alima-webdev/zotero-review-assistant/releases/latest/download/zotero-review-assistant.xpi",
"applications": {
"zotero": {
Expand Down
2 changes: 1 addition & 1 deletion update.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"zoteroreviewassistant@alima-webdev.com": {
"updates": [
{
"version": "1.0.2",
"version": "1.0.1",
"update_link": "https://github.com/alima-webdev/zotero-review-assistant/releases/latest/download/zotero-review-assistant.xpi",
"applications": {
"zotero": {
Expand Down

0 comments on commit bb6c40d

Please sign in to comment.