Add project name autofocus
authorDaniel Kos <daniel.kos@contractors.roche.com>
Thu, 13 Sep 2018 06:15:22 +0000 (08:15 +0200)
committerDaniel Kos <daniel.kos@contractors.roche.com>
Thu, 13 Sep 2018 06:15:22 +0000 (08:15 +0200)
Feature #14161

Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos@contractors.roche.com>

src/views-components/form-fields/project-form-fields.tsx

index 630877e72f14e5e66729aa07e3b51002d95fbfeb..6446c763a81300850c026ed3889ed4d86872837a 100644 (file)
@@ -12,11 +12,12 @@ export const ProjectNameField = () =>
         name='name'
         component={TextField}
         validate={PROJECT_NAME_VALIDATION}
-        label="Project Name" />;
+        label="Project Name"
+        autoFocus={true} />;
 
 export const ProjectDescriptionField = () =>
     <Field
         name='description'
         component={TextField}
         validate={PROJECT_DESCRIPTION_VALIDATION}
-        label="Description - optional" />;
\ No newline at end of file
+        label="Description - optional" />;