Skip to content

Commit

Permalink
Add autoFocus to staking and unstaking forms (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
doerfli committed May 31, 2024
1 parent e9d71ba commit c59118d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/stake/stake_bundle_form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export default function StakeBundleForm(props: StakeBundleFormProps) {
label={t('stakedAmount')}
fullWidth
disabled={props.formDisabled}
autoFocus
variant={INPUT_VARIANT}
{...field}
onBlur={() => { field.onBlur(); calculateSupportedAmount(); }}
Expand Down
1 change: 1 addition & 0 deletions src/components/unstake/unstake_bundle_form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export default function UnstakeBundleForm(props: UnstakeBundleFormProps) {
label={t('stakedAmount')}
fullWidth
disabled={props.formDisabled || watchUnstakeMaxAmount }
autoFocus
variant={INPUT_VARIANT}
{...field}
InputProps={{
Expand Down

0 comments on commit c59118d

Please sign in to comment.