Browse Source

Autofocus account name on AccountSettings

master
meriadec 7 years ago
parent
commit
583baa2a6b
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 2
      src/components/modals/AccountSettingRenderBody.js

2
src/components/modals/AccountSettingRenderBody.js

@ -206,11 +206,11 @@ class HelperComp extends PureComponent<Props, State> {
</Box> </Box>
<Box> <Box>
<Input <Input
autoFocus
containerProps={{ style: { width: 230 } }} containerProps={{ style: { width: 230 } }}
value={account.name} value={account.name}
maxLength={MAX_ACCOUNT_NAME_SIZE} maxLength={MAX_ACCOUNT_NAME_SIZE}
onChange={this.handleChangeName} onChange={this.handleChangeName}
renderLeft={<InputLeft currency={account.currency} />}
onFocus={e => this.handleFocus(e, 'accountName')} onFocus={e => this.handleFocus(e, 'accountName')}
error={accountNameError && t('app:account.settings.accountName.error')} error={accountNameError && t('app:account.settings.accountName.error')}
/> />

Loading…
Cancel
Save