form icon indicating copy to clipboard operation
form copied to clipboard

SolidJS Array Field Not Working

Open alexvuka1 opened this issue 1 year ago • 0 comments

Describe the bug

I have tried to follow the example given in the docs (link) as closely as possible, but with no luck. Adding a new field works, but typing in it results in the field disappearing. Also, typescript is not happy with type checking of the index prop and when calling the handleChange function.

Your minimal, reproducible example

https://stackblitz.com/edit/solid-vite-fpsaqi?file=src%2Findex.tsx

Steps to reproduce

  1. Click the 'Add name' button
  2. Start typing in the field

Expected behavior

As a user I expected the be able to type into the array field.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • OS: Windows/WSL2
  • Browser: Chrome
  • Version: 120

Tanstack Form adapter

solid-form

TanStack Form version

0.13.3

TypeScript version

5.3.3

Additional context

No response

alexvuka1 avatar Jan 17 '24 10:01 alexvuka1