form
form copied to clipboard
SolidJS Array Field Not Working
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
- Click the 'Add name' button
- 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