Skip to content

Commit 6a24bd4

Browse files
committed
docs: update @input other inputs example with $event.target.value
1 parent a856e6d commit 6a24bd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/v4/content/docs/forms/02.tanstack-form.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Here's a basic example of a form using TanStack Form with the `<Field />` compon
5757
:name="field.name"
5858
:model-value="field.state.value"
5959
@blur="field.handleBlur"
60-
@input="field.handleChange"
60+
@input="field.handleChange($event.target.value)"
6161
:aria-invalid="isInvalid(field)"
6262
placeholder="Login button not working on mobile"
6363
autocomplete="off"
@@ -237,7 +237,7 @@ function isInvalid(field) {
237237
:name="field.name"
238238
:model-value="field.state.value"
239239
@blur="field.handleBlur"
240-
@input="field.handleChange"
240+
@input="field.handleChange($event.target.value)"
241241
type="email"
242242
:aria-invalid="isInvalid(field)"
243243
/>
@@ -634,7 +634,7 @@ Access individual array items using bracket notation: `fieldName[index].property
634634
:name="subField.name"
635635
:model-value="subField.state.value"
636636
@blur="subField.handleBlur"
637-
@input="subField.handleChange"
637+
@input="field.handleChange($event.target.value)"
638638
:aria-invalid="isSubFieldInvalid(subField)"
639639
placeholder="[email protected]"
640640
type="email"

0 commit comments

Comments
 (0)