From aa3f8792a892ff965d067ade4e868ccbf5ea885f Mon Sep 17 00:00:00 2001 From: Caleb Cox Date: Wed, 11 Sep 2024 13:45:03 -0500 Subject: [PATCH] Focus amount field in commitment modal --- src/components/Tool/Appeal/Modals/PledgeModal/PledgeModal.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Tool/Appeal/Modals/PledgeModal/PledgeModal.tsx b/src/components/Tool/Appeal/Modals/PledgeModal/PledgeModal.tsx index a7217c8d6..10538ea65 100644 --- a/src/components/Tool/Appeal/Modals/PledgeModal/PledgeModal.tsx +++ b/src/components/Tool/Appeal/Modals/PledgeModal/PledgeModal.tsx @@ -237,6 +237,8 @@ export const PledgeModal: React.FC = ({ }} id="amount-input" error={!!errors.amount && touched.amount} + // eslint-disable-next-line jsx-a11y/no-autofocus + autoFocus /> {meta.touched && meta.error}