{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/1196","repository_url":"https://api.github.com/repos/erikras/redux-form","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/1196/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/1196/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/1196/events","html_url":"https://github.com/erikras/redux-form/issues/1196","id":161447454,"number":1196,"title":"v6: Initial values disables changing custom form components","user":{"login":"ajdegol","id":11442083,"avatar_url":"https://avatars.githubusercontent.com/u/11442083?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdegol","html_url":"https://github.com/ajdegol","followers_url":"https://api.github.com/users/ajdegol/followers","following_url":"https://api.github.com/users/ajdegol/following{/other_user}","gists_url":"https://api.github.com/users/ajdegol/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdegol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdegol/subscriptions","organizations_url":"https://api.github.com/users/ajdegol/orgs","repos_url":"https://api.github.com/users/ajdegol/repos","events_url":"https://api.github.com/users/ajdegol/events{/privacy}","received_events_url":"https://api.github.com/users/ajdegol/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-21T14:11:14Z","updated_at":"2016-07-12T15:16:35Z","closed_at":"2016-07-12T15:16:35Z","body":"Using 6.0.0-alpha.15\r\n\r\nProbably doing something very silly but can't see what exactly.\r\n\r\nIf I have a form that implements custom components (see below), then if I supply any initial values to the `initialValues` prop none of the fields fields will be selectable. If no initial values are passed in then it behaves as would be expected. If you're just using simple `Field`s with initial values it is also fine.\r\n\r\nSimple example:\r\n```javascript\r\nimport React from 'react'\r\nimport { Field, reduxForm } from 'redux-form/immutable'\r\n\r\nconst validate = values => {\r\n  const errors = {}\r\n  if (!values.get('fname')){\r\n    errors.fname = \"Required\"\r\n  }\r\n  if (!values.get('lname')){\r\n    errors.lname = \"Required\"\r\n  }\r\n  if (!values.get('email')){\r\n    errors.email = \"Required\"\r\n  }\r\n  return errors\r\n}\r\n\r\nconst UserForm = (props) => {\r\n  const { handleSubmit, pristine, reset, submitting, submitText } = props\r\n  return (\r\n    <form onSubmit={handleSubmit}>\r\n      <div className=\"form-group\">\r\n        <label className=\"form-group\">First Name</label>\r\n        <Field name=\"fname\" className=\"form-control\" component={fname =>\r\n          <div>\r\n            <input type=\"text\" {...fname} placeholder=\"First Name\"/>\r\n            {fname.touched && fname.error && <span>{fname.error}</span>}\r\n          </div>\r\n        }/>\r\n      </div>\r\n\r\n      <div className=\"form-group\">\r\n        <label className=\"form-group\">Last Name</label>\r\n        <Field name=\"lname\" className=\"form-control\" component={lname =>\r\n          <div>\r\n            <input type=\"text\" {...lname} placeholder=\"Last Name\"/>\r\n            {lname.touched && lname.error && <span>{lname.error}</span>}\r\n          </div>\r\n        }/>\r\n      </div>\r\n\r\n      <div className=\"form-group\">\r\n        <label className=\"form-group\">Email</label>\r\n        <Field name=\"email\" className=\"form-control\" component={email =>\r\n          <div>\r\n            <input type=\"email\" {...email} placeholder=\"Email\"/>\r\n            {email.touched && email.error && <span>{email.error}</span>}\r\n          </div>\r\n        }/>\r\n      </div>\r\n\r\n      <div className=\"form-group\">\r\n        <button className=\"btn btn-default\" type=\"submit\" disabled={pristine || submitting}>Submit</button>\r\n        <button className=\"btn btn-default\" type=\"button\" disabled={pristine || submitting} onClick={reset}>Clear Values</button>\r\n      </div>\r\n    </form>\r\n );\r\n}\r\n\r\nexport default reduxForm({\r\n form: 'userForm',\r\n validate\r\n})(UserForm);\r\n```"},"comment":{"url":"https://api.github.com/repos/erikras/redux-form/issues/comments/232080617","html_url":"https://github.com/erikras/redux-form/issues/1196#issuecomment-232080617","issue_url":"https://api.github.com/repos/erikras/redux-form/issues/1196","id":232080617,"user":{"login":"ajdegol","id":11442083,"avatar_url":"https://avatars.githubusercontent.com/u/11442083?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdegol","html_url":"https://github.com/ajdegol","followers_url":"https://api.github.com/users/ajdegol/followers","following_url":"https://api.github.com/users/ajdegol/following{/other_user}","gists_url":"https://api.github.com/users/ajdegol/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdegol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdegol/subscriptions","organizations_url":"https://api.github.com/users/ajdegol/orgs","repos_url":"https://api.github.com/users/ajdegol/repos","events_url":"https://api.github.com/users/ajdegol/events{/privacy}","received_events_url":"https://api.github.com/users/ajdegol/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T15:16:35Z","updated_at":"2016-07-12T15:16:35Z","body":"That's great, thank you!"}}
{"actor":{"display_login":"ajdegol"}}