Make email fields less space sensitive (#8341)
* Added an if to check if it is the email field * Reverted the last change * Added an if to check if its email field
This commit is contained in:
parent
11e0a3a8fa
commit
3750b90554
1 changed files with 3 additions and 1 deletions
|
@ -222,8 +222,10 @@ export default class ForgotPassword extends React.Component<IProps, IState> {
|
|||
}
|
||||
|
||||
private onInputChanged = (stateKey: string, ev: React.FormEvent<HTMLInputElement>) => {
|
||||
let value = ev.currentTarget.value;
|
||||
if (stateKey === "email") value = value.trim();
|
||||
this.setState({
|
||||
[stateKey]: ev.currentTarget.value,
|
||||
[stateKey]: value,
|
||||
} as any);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue