Skip to content

Commit

Permalink
enhance(folder): QoL autofocus on folder title when dialog opens
Browse files Browse the repository at this point in the history
  • Loading branch information
cysjonathan committed Jan 2, 2025
1 parent 5edcbb9 commit 7f9a167
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 @@ -90,6 +90,7 @@ const FolderForm: FC<Props> = (props) => {
name="name"
render={({ field, fieldState }): JSX.Element => (
<FormTextField
autoFocus
disabled={formState.isSubmitting}
field={field}
fieldState={fieldState}
Expand Down
1 change: 1 addition & 0 deletions client/app/lib/components/form/dialog/FormDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const FormDialog = (props: Props): JSX.Element => {
<Dialog
className="top-10"
disableEnforceFocus
disableRestoreFocus
maxWidth="md"
onClose={(_event: object, reason: string): void => {
if (reason === 'backdropClick' && formState.isSubmitting) return;
Expand Down

0 comments on commit 7f9a167

Please sign in to comment.