From f2748c13d7ed5299f5af4246f8bd90e4909bfef9 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Mon, 3 Oct 2022 08:20:34 -0500 Subject: [PATCH] Merge pull request #9783 from overleaf/jel-focus-copy-project-input [web] Add auto focus to clone project input GitOrigin-RevId: f78313437956d6fb0c3125ca0adf825235c37fa6 --- .../components/clone-project-modal-content.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/frontend/js/features/clone-project-modal/components/clone-project-modal-content.js b/services/web/frontend/js/features/clone-project-modal/components/clone-project-modal-content.js index ee7d89cae4..831a19a818 100644 --- a/services/web/frontend/js/features/clone-project-modal/components/clone-project-modal-content.js +++ b/services/web/frontend/js/features/clone-project-modal/components/clone-project-modal-content.js @@ -1,3 +1,4 @@ +/* eslint-disable jsx-a11y/no-autofocus */ import PropTypes from 'prop-types' import { useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' @@ -83,6 +84,7 @@ export default function CloneProjectModalContent({ required value={clonedProjectName} onChange={event => setClonedProjectName(event.target.value)} + autoFocus />