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
{{ message }}
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.
React Redux Form version: 1.3.0
Lodash Version: 4.17.2
Steps to reproduce:
Create repeating form element and add a few instances (see screenshot below for sample form state structure following this) using actions.push('modelName', initialModelState)
Try to remove a second item in the array using the same actions.remove method.
Expected Result:
The items are removed as expected.
Actual Result:
The first item is removed without issue. Subsequent attempts to remove items result in the following error:
Further Info
This breakage for me was introduced in v1.1.0. v1.0.15 does not exhibit this error.
The problems appears to be introduced in line 37-66 of src/reducers/form/change-action-reducer.js
On the first remove that works the value of field on line 38 is an object with the $form attribute:
On the second the remove the value is a basic array:
Nothing else had been done to the form state in between the 2 removes and there are no custom reducers involved.
The text was updated successfully, but these errors were encountered:
React Redux Form version: 1.3.0
Lodash Version: 4.17.2
Steps to reproduce:
actions.push('modelName', initialModelState)
actions.remove('modelName', index)
(http://davidkpiano.github.io/react-redux-form/docs/api/actions.html#actions-remove)actions.remove
method.Expected Result:
The items are removed as expected.
Actual Result:
The first item is removed without issue. Subsequent attempts to remove items result in the following error:
![screen shot 2016-12-02 at 09 00 43](https://cloud.githubusercontent.com/assets/685691/20842859/dcff3134-b86d-11e6-9800-acaf3f485305.png)
Further Info
This breakage for me was introduced in v1.1.0. v1.0.15 does not exhibit this error.
The problems appears to be introduced in line 37-66 of
src/reducers/form/change-action-reducer.js
On the first remove that works the value of
![screen shot 2016-12-02 at 09 07 18](https://cloud.githubusercontent.com/assets/685691/20843141/0b068e14-b86f-11e6-957e-d9b1da75fb57.png)
field
on line 38 is an object with the$form
attribute:On the second the remove the value is a basic array:
![screen shot 2016-12-02 at 09 08 21](https://cloud.githubusercontent.com/assets/685691/20843164/1c8dfa78-b86f-11e6-8cab-ca9248ce442a.png)
Nothing else had been done to the form state in between the 2 removes and there are no custom reducers involved.
The text was updated successfully, but these errors were encountered: