diff --git a/src/ui/LOC/utils.ts b/src/ui/LOC/utils.ts index 8653b1b..57ebf09 100644 --- a/src/ui/LOC/utils.ts +++ b/src/ui/LOC/utils.ts @@ -11,7 +11,7 @@ export function focus() { } function focusInput() { //@ts-ignore - document.getElementsByClassName("prompt-input")[0].focus(); + activeDocument.getElementsByClassName("prompt-input")[0].focus(); } export function renderSug(item: SuggesterItem, el: HTMLElement) {