Skip to content

Commit

Permalink
attempt fix focus
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Nov 22, 2023
1 parent 66ea5b6 commit 7fc18fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 7fc18fb

Please sign in to comment.