From 839f91e58473405ee8ab8d3022449aa829f3aa8e Mon Sep 17 00:00:00 2001 From: EasySouls Date: Mon, 23 Sep 2024 23:29:48 +0200 Subject: [PATCH] Focus input after submitting riddle --- frontend/src/pages/riddle/riddle.page.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/pages/riddle/riddle.page.tsx b/frontend/src/pages/riddle/riddle.page.tsx index 7ed4e0981..03c43683a 100644 --- a/frontend/src/pages/riddle/riddle.page.tsx +++ b/frontend/src/pages/riddle/riddle.page.tsx @@ -78,6 +78,7 @@ const RiddlePage = () => { duration: 5000, isClosable: true }) || null + solutionInput.current?.focus() } if (result.status === RiddleSubmissionStatus.SUBMITTER_BANNED) { if (toastIdRef.current) {