diff --git a/src/__tests__/reduxForm.spec.js b/src/__tests__/reduxForm.spec.js index 26cfe3f2c..62a72e872 100644 --- a/src/__tests__/reduxForm.spec.js +++ b/src/__tests__/reduxForm.spec.js @@ -807,7 +807,7 @@ const describeReduxForm = (name, structure, combineReducers, setup) => { expect(propsAtNthRender(inputRender, 1).input.value).toBe('bar') }) - it('should support calling change in Form componentDidMount', () => { + it('should support calling change in Form componentDidMount with keepValues', () => { const store = makeStore({}) const inputRender = jest.fn(props => ) const formRender = jest.fn() @@ -832,7 +832,7 @@ const describeReduxForm = (name, structure, combineReducers, setup) => { const Decorated = reduxForm({ form: 'testForm' })(Form) TestUtils.renderIntoDocument( - + ) expect(store.getState()).toEqualMap({ diff --git a/src/createReduxForm.js b/src/createReduxForm.js index eaaf933c5..ce991b81f 100755 --- a/src/createReduxForm.js +++ b/src/createReduxForm.js @@ -312,7 +312,6 @@ const createReduxForm = (structure: Structure<*, *>) => { pure: true, forceUnregisterOnUnmount: false, submitAsSideEffect: false, - keepValues: true, ...initialConfig }