You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new item is added to the array at the given index, previous items are not touched, subsequent items are shifted by 1 (to make room for the new item).
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
MacOS
TanStack Form adapter
react-form
TanStack Form version
0.19.4
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Balastrong
changed the title
insertValue replaces item instead of adding a new one and shift existing items
insertFieldValue replaces item instead of adding a new one and shift existing items
May 2, 2024
Describe the bug
insertFieldValue
(andinsertValue
) currently replaces the value at the given index.Your minimal, reproducible example
https://stackblitz.com/edit/tanstack-form-tbctpy?file=src%2Findex.tsx
Steps to reproduce
Expected behavior
A new item is added to the array at the given index, previous items are not touched, subsequent items are shifted by 1 (to make room for the new item).
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
MacOS
TanStack Form adapter
react-form
TanStack Form version
0.19.4
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: