From 7fc18fb8c0f3a7610d1b3073c1f2f1da62962fd5 Mon Sep 17 00:00:00 2001 From: Brian Ingles Date: Wed, 22 Nov 2023 08:55:24 -0600 Subject: [PATCH] attempt fix focus --- src/components/Game.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Game.tsx b/src/components/Game.tsx index 99c108f..070ae1f 100644 --- a/src/components/Game.tsx +++ b/src/components/Game.tsx @@ -81,7 +81,9 @@ export function Game() { createEffect( on(depend, () => { - inputRef?.focus() + setTimeout(() => { + inputRef?.focus() + }, 200) if (state.autoProgress && state.status !== 'unanswered') { const timeout = setTimeout(() => {