From 2fab402929ed97a99d6b00dd2a91f3aad7b5de8d Mon Sep 17 00:00:00 2001 From: m4nd4r1n Date: Sun, 26 Mar 2023 23:09:02 +0900 Subject: [PATCH 1/2] =?UTF-8?q?hotfix:=20=EB=A7=88=EA=B0=90=20=EC=9E=84?= =?UTF-8?q?=EB=B0=95=20=EA=B3=B5=EB=AA=A8=20=ED=83=80=EC=9D=B4=ED=8B=80=20?= =?UTF-8?q?=EC=A0=95=EB=A0=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/cahoot/DeadlineCarousel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/cahoot/DeadlineCarousel.tsx b/src/components/cahoot/DeadlineCarousel.tsx index cb5c0af..fb6021e 100644 --- a/src/components/cahoot/DeadlineCarousel.tsx +++ b/src/components/cahoot/DeadlineCarousel.tsx @@ -35,7 +35,7 @@ const DeadlineCarousel = () => { )} -
+
{title}
From fa0dd2abd5fdb9fe87739ed26c1f05fa42182355 Mon Sep 17 00:00:00 2001 From: m4nd4r1n Date: Sun, 26 Mar 2023 23:12:07 +0900 Subject: [PATCH 2/2] =?UTF-8?q?hotfix:=20=EA=B2=80=EC=83=89=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 검색어 전체 삭제 시 submit 요청 추가 --- src/components/common/Search.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/components/common/Search.tsx b/src/components/common/Search.tsx index 6408680..b7ca8ba 100644 --- a/src/components/common/Search.tsx +++ b/src/components/common/Search.tsx @@ -1,10 +1,24 @@ +import { useRef } from 'react'; + import Icon from './Icons'; const Search = () => { + const submitRef = useRef(null); + + const onChange = (e: React.ChangeEvent) => { + if (!submitRef.current) return; + if (e.target.value === '') { + submitRef.current.click(); + } + }; + return (
- +