From f4e98445930e1b12474646307281e949bc1defbf Mon Sep 17 00:00:00 2001 From: noufalrahim Date: Thu, 12 Dec 2024 18:13:40 +0530 Subject: [PATCH] fix: fixed enter key issue --- src/components/Form/Form.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/Form/Form.tsx b/src/components/Form/Form.tsx index 5a3bf552b26..18f190ccc3c 100644 --- a/src/components/Form/Form.tsx +++ b/src/components/Form/Form.tsx @@ -98,6 +98,11 @@ const Form = ({ return (
{ + if (e.key === "Enter") { + handleSubmit(e); + } + }} className={classNames( "mx-auto w-full", !props.noPadding && "px-8 py-5 md:px-16 md:py-11",