Skip to content

Commit f7c5047

Browse files
authored
Merge pull request #852 from topcoder-platform/profiles-app
MP-309 Tab order in edu&exp modals -> dev
2 parents 2efe6a5 + 944fc22 commit f7c5047

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

src/apps/profiles/src/member-profile/education-and-certifications/ModifyEducationModal/ModifyEducationModal.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ const ModifyEducationModal: FC<ModifyEducationModalProps> = (props: ModifyEducat
277277
error={formErrors.major}
278278
placeholder='Enter Degree'
279279
dirty
280-
tabIndex={-1}
280+
tabIndex={0}
281281
type='text'
282282
onChange={bind(handleFormValueChange, this, 'major')}
283283
value={formValues.major as string}
@@ -291,18 +291,8 @@ const ModifyEducationModal: FC<ModifyEducationModalProps> = (props: ModifyEducat
291291
name='endDate'
292292
label='End Year or Expected'
293293
placeholder='Select a year'
294+
tabIndex={0}
294295
/>
295-
{/* <InputDatePicker
296-
label='End date (or expected)'
297-
date={formValues.endDate as Date}
298-
onChange={bind(handleFormValueChange, this, 'endDate')}
299-
disabled={false}
300-
error={formErrors.endDate}
301-
dirty
302-
showMonthPicker={false}
303-
showYearPicker
304-
dateFormat='yyyy'
305-
/> */}
306296
</form>
307297
) : (
308298
<Button

src/apps/profiles/src/member-profile/work-expirence/ModifyWorkExpirenceModal/ModifyWorkExpirenceModal.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ const ModifyWorkExpirenceModal: FC<ModifyWorkExpirenceModalProps> = (props: Modi
302302
error={formErrors.position}
303303
placeholder='Enter a position'
304304
dirty
305-
tabIndex={-1}
305+
tabIndex={0}
306306
type='text'
307307
onChange={bind(handleFormValueChange, this, 'position')}
308308
value={formValues.position as string}
@@ -314,7 +314,7 @@ const ModifyWorkExpirenceModal: FC<ModifyWorkExpirenceModalProps> = (props: Modi
314314
error={formErrors.industry}
315315
placeholder='Enter an industry'
316316
dirty
317-
tabIndex={-1}
317+
tabIndex={0}
318318
type='text'
319319
onChange={bind(handleFormValueChange, this, 'industry')}
320320
value={formValues.industry as string}
@@ -325,7 +325,7 @@ const ModifyWorkExpirenceModal: FC<ModifyWorkExpirenceModalProps> = (props: Modi
325325
error={formErrors.city}
326326
placeholder='Enter a city'
327327
dirty
328-
tabIndex={-1}
328+
tabIndex={0}
329329
type='text'
330330
onChange={bind(handleFormValueChange, this, 'city')}
331331
value={formValues.city as string}
@@ -356,7 +356,7 @@ const ModifyWorkExpirenceModal: FC<ModifyWorkExpirenceModalProps> = (props: Modi
356356
label='I am currently working in this role'
357357
error={formErrors.currentlyWorking}
358358
dirty
359-
tabIndex={-1}
359+
tabIndex={0}
360360
type='checkbox'
361361
onChange={bind(handleFormValueChange, this, 'currentlyWorking')}
362362
checked={formValues.currentlyWorking as boolean}

0 commit comments

Comments
 (0)