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:
Reshma 2022-04-16 06:47:04 +05:30 committed by GitHub
parent 11e0a3a8fa
commit 3750b90554
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -222,8 +222,10 @@ export default class ForgotPassword extends React.Component<IProps, IState> {
} }
private onInputChanged = (stateKey: string, ev: React.FormEvent<HTMLInputElement>) => { private onInputChanged = (stateKey: string, ev: React.FormEvent<HTMLInputElement>) => {
let value = ev.currentTarget.value;
if (stateKey === "email") value = value.trim();
this.setState({ this.setState({
[stateKey]: ev.currentTarget.value, [stateKey]: value,
} as any); } as any);
}; };