mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 09:15:16 +00:00
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:
@@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user