From bb6c40d47ba342ef780b599c245dbacf15a5cc6f Mon Sep 17 00:00:00 2001 From: alima-webdev Date: Tue, 9 Jul 2024 00:00:07 -0400 Subject: [PATCH] Fixed reason modal input autofocus --- package.json | 2 +- src/ui/pane/columns/reason.ts | 3 +-- update-beta.json | 2 +- update.json | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 66e4167..cdf9317 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/ui/pane/columns/reason.ts b/src/ui/pane/columns/reason.ts index 159faf7..7143720 100644 --- a/src/ui/pane/columns/reason.ts +++ b/src/ui/pane/columns/reason.ts @@ -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) @@ -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; diff --git a/update-beta.json b/update-beta.json index 29c673c..3546aac 100644 --- a/update-beta.json +++ b/update-beta.json @@ -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": { diff --git a/update.json b/update.json index 29c673c..3546aac 100644 --- a/update.json +++ b/update.json @@ -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": {