Merge pull request #1406 from Pallavikumarimdb/enhancement-#906/enter-key-form-behavior

Enter key handling & hostname field reset in resource create
This commit is contained in:
Owen Schwartz
2025-09-15 14:26:29 -07:00
committed by GitHub
5 changed files with 78 additions and 15 deletions

View File

@@ -448,6 +448,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"
>