diff options
| author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2026-03-24 22:17:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-24 22:17:07 +0100 |
| commit | 02ba38786542b5575904f18c8e47a266effa6818 (patch) | |
| tree | 7b5f4bdb23911d42fd62363d913d1527867bac11 /client/simple/src | |
| parent | 8c1570af1c2fb41df9733060f28017d3bd9e29e5 (diff) | |
[upd] web-client (simple): Bump the group (#5874)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'client/simple/src')
| -rw-r--r-- | client/simple/src/js/main/keyboard.ts | 6 | ||||
| -rw-r--r-- | client/simple/src/js/toolkit.ts | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/client/simple/src/js/main/keyboard.ts b/client/simple/src/js/main/keyboard.ts index f16b27c0f..b4b8e0f92 100644 --- a/client/simple/src/js/main/keyboard.ts +++ b/client/simple/src/js/main/keyboard.ts @@ -190,9 +190,7 @@ const highlightResult = let next: HTMLElement | undefined; - if (typeof effectiveWhich !== "string") { - next = effectiveWhich; - } else { + if (typeof effectiveWhich === "string") { switch (effectiveWhich) { case "visible": { const top = document.documentElement.scrollTop || document.body.scrollTop; @@ -222,6 +220,8 @@ const highlightResult = default: [next] = results; } + } else { + next = effectiveWhich; } if (next) { diff --git a/client/simple/src/js/toolkit.ts b/client/simple/src/js/toolkit.ts index 2eaf1d02c..c007e3251 100644 --- a/client/simple/src/js/toolkit.ts +++ b/client/simple/src/js/toolkit.ts @@ -123,10 +123,10 @@ export const ready = (callback: () => void, options?: ReadyOptions): void => { } } - if (document.readyState !== "loading") { - callback(); - } else { + if (document.readyState === "loading") { listen("DOMContentLoaded", document, callback, { once: true }); + } else { + callback(); } }; |
