Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitacfe762

Browse files
committed
feat(register-form): set username to lowercase
1 parent1c010e5 commitacfe762

File tree

1 file changed

+4
-1
lines changed
  • libs/react-coding-test/feature-register-form/src/lib/containers/signup-form

1 file changed

+4
-1
lines changed

‎libs/react-coding-test/feature-register-form/src/lib/containers/signup-form/signup-form.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ export const SignupForm = (props: SignupFormProps) => {
5555
name="username"
5656
placeholder="anottakenusername"
5757
value={values.username}
58-
onChange={handleChange}
58+
onChange={(event:React.FormEvent<HTMLInputElement>)=>{
59+
event.currentTarget.value=event.currentTarget.value.toLowerCase();
60+
handleChange(event);
61+
}}
5962
onBlur={handleBlur}
6063
className={`txt-input${
6164
errors.username&&touched.username ?'error' :''

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp