From a81f599a2ebe98ef8a30ad693232156e903ae39d Mon Sep 17 00:00:00 2001 From: sujikim Date: Tue, 31 Oct 2023 16:12:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B2=80=EC=83=89=EC=B0=BD=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=EC=8B=9C=20=EA=B8=B0=EB=B3=B8=20=EC=83=88=EB=A1=9C?= =?UTF-8?q?=EA=B3=A0=EC=B9=A8=20=ED=95=B4=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/utils/SearchBar.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/component/utils/SearchBar.tsx b/src/component/utils/SearchBar.tsx index b792fbec..faf7688a 100644 --- a/src/component/utils/SearchBar.tsx +++ b/src/component/utils/SearchBar.tsx @@ -11,11 +11,19 @@ export type Props = ComponentProps<"form"> & { const SearchBar = ({ width = "banner", className = "", + onSubmit, children, ...rest }: Props) => { return ( -
+ { + e.preventDefault(); + onSubmit && onSubmit(e); + }} + > {children}
);