Skip to content

Commit

Permalink
autofocus input during editing
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaCimini90 committed Feb 18, 2025
1 parent 5b2fb31 commit 5498c6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ const DefaultDigitalContact = forwardRef<{ toggleEdit: () => void }, Props>(
formik.touched[`default_${contactType}`] && formik.errors[`default_${contactType}`]
}
sx={{ mb: 2 }}
autoFocus
/>
<ButtonNaked
key="saveButton"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ const DefaultDigitalContact = forwardRef<{ toggleEdit: () => void }, Props>(
formik.touched[`default_${contactType}`] && formik.errors[`default_${contactType}`]
}
sx={{ mb: 2 }}
autoFocus
/>
<ButtonNaked
key="saveButton"
Expand Down

0 comments on commit 5498c6b

Please sign in to comment.