From 51aff59ae23468a801059068d9f626c47ae2a2c6 Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Thu, 4 Apr 2024 15:18:31 -0700 Subject: [PATCH 1/2] Update GuidedStructure.js --- .../src/stories/pages/guided-mode/data/GuidedStructure.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/src/stories/pages/guided-mode/data/GuidedStructure.js b/src/renderer/src/stories/pages/guided-mode/data/GuidedStructure.js index c5993c30e..8b1b5779a 100644 --- a/src/renderer/src/stories/pages/guided-mode/data/GuidedStructure.js +++ b/src/renderer/src/stories/pages/guided-mode/data/GuidedStructure.js @@ -35,6 +35,7 @@ export class GuidedStructurePage extends Page { this.addButton.innerText = "Add Format"; this.addButton.onClick = () => { + this.search.shadowRoot.querySelector('input').focus() this.searchModal.toggle(true); }; From a6e06dc169d4babd39ca7d3042b5fe11fae8da3e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 22:19:17 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../src/stories/pages/guided-mode/data/GuidedStructure.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/stories/pages/guided-mode/data/GuidedStructure.js b/src/renderer/src/stories/pages/guided-mode/data/GuidedStructure.js index 8b1b5779a..0c908a513 100644 --- a/src/renderer/src/stories/pages/guided-mode/data/GuidedStructure.js +++ b/src/renderer/src/stories/pages/guided-mode/data/GuidedStructure.js @@ -35,7 +35,7 @@ export class GuidedStructurePage extends Page { this.addButton.innerText = "Add Format"; this.addButton.onClick = () => { - this.search.shadowRoot.querySelector('input').focus() + this.search.shadowRoot.querySelector("input").focus(); this.searchModal.toggle(true); };