Skip to content

Commit

Permalink
Merge pull request #1055 from CruGlobal/8189-commitment-modal-focus
Browse files Browse the repository at this point in the history
[MPDX-8189] Focus amount field in commitment modal
  • Loading branch information
canac committed Sep 12, 2024
2 parents ead5181 + aa3f879 commit d8322b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Tool/Appeal/Modals/PledgeModal/PledgeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ export const PledgeModal: React.FC<PledgeModalProps> = ({
}}
id="amount-input"
error={!!errors.amount && touched.amount}
// eslint-disable-next-line jsx-a11y/no-autofocus
autoFocus
/>
<FormHelperText>
{meta.touched && meta.error}
Expand Down

0 comments on commit d8322b7

Please sign in to comment.