Skip to content

Commit c6da0c3

Browse files
committed
Docs fix forFor prop
see inertiajs/inertiajs.com#324
1 parent 970cdca commit c6da0c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guide/validation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ export default function Edit() {
107107

108108
return (
109109
<form onSubmit={handleSubmit}>
110-
<label for="first_name">First name:</label>
110+
<label htmlFor="first_name">First name:</label>
111111
<input
112112
id="first_name"
113113
value={values.first_name}
114114
onChange={handleChange}
115115
/>
116116
{errors.first_name && <div>{errors.first_name}</div>}
117-
<label for="last_name">Last name:</label>
117+
<label htmlFor="last_name">Last name:</label>
118118
<input id="last_name" value={values.last_name} onChange={handleChange} />
119119
{errors.last_name && <div>{errors.last_name}</div>}
120-
<label for="email">Email:</label>
120+
<label htmlFor="email">Email:</label>
121121
<input id="email" value={values.email} onChange={handleChange} />
122122
{errors.email && <div>{errors.email}</div>}
123123
<button type="submit">Submit</button>

0 commit comments

Comments
 (0)