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
So what's happening here is that the name is being passed to lodash's toPath method which converts the name from kitIds[45345345][1] to ['kitIds', '45345345', '1'] and then the value gets to a kitIds = Array[45345345] and then at index 45345345 it creates another array of size 2 and at index 1 of that array it sets the value.
This is happening in the method setIn within the utils.ts file on line 106.
For example, if you pass this as the name "firstName[1][1]" and update the value and log the value in handle submit you will see { firstName: [empty, [empty, 'value'] ] }
Bug report
Current Behavior
Crashes the browser
Expected behavior
To work the same as when using string keys
Reproducible example
Suggested solution(s)
Should work the same as string keys
Additional context
Adding a letter to the keys solves this bug but not an ideal solution, should work the same as string keys
Your environment
The text was updated successfully, but these errors were encountered: