Enter key handling & hostname field reset in resource create

This commit is contained in:
Pallavi
2025-09-04 01:10:55 +05:30
parent 122902968f
commit 84fb3add33
2 changed files with 49 additions and 14 deletions

View File

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