From e9b92b4a2ff2ab09a2398b09c4c9735536fc778d Mon Sep 17 00:00:00 2001 From: 2814109 <2814109k@gmail.com> Date: Thu, 2 Jan 2025 20:19:36 +0900 Subject: [PATCH 1/2] chore --- src/components/Search.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Search.tsx b/src/components/Search.tsx index 4ec41bc98..6bda20068 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -49,7 +49,7 @@ export default function SearchBar({ searchList }: Props) { if (searchStr) setInputVal(searchStr); // put focus cursor at the end of the string - setTimeout(function () { + setTimeout(() => { inputRef.current!.selectionStart = inputRef.current!.selectionEnd = searchStr?.length || 0; }, 50); @@ -85,7 +85,7 @@ export default function SearchBar({ searchList }: Props) {