fix enter key reload issue

This commit is contained in:
Pallavi
2025-09-04 02:23:22 +05:30
parent 84fb3add33
commit 86956b8cac
3 changed files with 15 additions and 0 deletions

View File

@@ -210,6 +210,11 @@ export default function Page() {
<SettingsSectionForm>
<Form {...form}>
<form
onKeyDown={(e) => {
if (e.key === "Enter") {
e.preventDefault(); // block default enter refresh
}
}}
className="space-y-4"
id="create-site-form"
>

View File

@@ -440,6 +440,11 @@ export default function Page() {
<SettingsSectionForm>
<Form {...form}>
<form
onKeyDown={(e) => {
if (e.key === "Enter") {
e.preventDefault(); // block default enter refresh
}
}}
className="space-y-4"
id="create-client-form"
>

View File

@@ -200,6 +200,11 @@ export default function Page() {
<SettingsSectionForm>
<Form {...form}>
<form
onKeyDown={(e) => {
if (e.key === "Enter") {
e.preventDefault(); // block default enter refresh
}
}}
className="space-y-4"
id="create-site-form"
>