mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-14 08:35:29 +08:00
fix(onboarding) Actually trim email field value in form
This commit is contained in:
parent
53cfe7ac7d
commit
5105930d8c
1 changed files with 4 additions and 2 deletions
|
@ -65,8 +65,10 @@ const CreatePageForForm = (FormComponent) => {
|
|||
if (event.target.type === 'checkbox') {
|
||||
changes[event.target.id] = event.target.checked;
|
||||
} else {
|
||||
const {value = ''} = event.target
|
||||
changes[event.target.id] = value.trim();
|
||||
changes[event.target.id] = event.target.value;
|
||||
if (event.target.id === 'email') {
|
||||
changes[event.target.id] = event.target.value.trim();
|
||||
}
|
||||
}
|
||||
|
||||
const accountInfo = Object.assign({}, this.state.accountInfo, changes);
|
||||
|
|
Loading…
Add table
Reference in a new issue