{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/1521","repository_url":"https://api.github.com/repos/erikras/redux-form","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/1521/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/1521/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/1521/events","html_url":"https://github.com/erikras/redux-form/issues/1521","id":170766517,"number":1521,"title":"[6.0.0-rc.4] Set defaultValue after first focus?","user":{"login":"cpsubrian","id":319152,"avatar_url":"https://avatars.githubusercontent.com/u/319152?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsubrian","html_url":"https://github.com/cpsubrian","followers_url":"https://api.github.com/users/cpsubrian/followers","following_url":"https://api.github.com/users/cpsubrian/following{/other_user}","gists_url":"https://api.github.com/users/cpsubrian/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsubrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsubrian/subscriptions","organizations_url":"https://api.github.com/users/cpsubrian/orgs","repos_url":"https://api.github.com/users/cpsubrian/repos","events_url":"https://api.github.com/users/cpsubrian/events{/privacy}","received_events_url":"https://api.github.com/users/cpsubrian/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-11T22:59:14Z","updated_at":"2016-08-23T06:32:02Z","closed_at":"2016-08-23T06:32:02Z","body":"I'm sure I'm missing something obvious here, but I tried doing the following and it messed with the actual 'focusing' of the field in weird ways.\r\n\r\n```js\r\nconst MyDateField = (props) => {\r\n  return (\r\n    <input\r\n      {...props.input}\r\n      type='text'\r\n      onFocus={(e) => {\r\n        props.input.onFocus(e)\r\n        if (!props.input.value) {\r\n          props.input.onChange('today')\r\n        }\r\n      }}\r\n    />\r\n  )\r\n}\r\n<Field name='date' component={MyDateField}/>\r\n```"},"comment":{"url":"https://api.github.com/repos/erikras/redux-form/issues/comments/241639575","html_url":"https://github.com/erikras/redux-form/issues/1521#issuecomment-241639575","issue_url":"https://api.github.com/repos/erikras/redux-form/issues/1521","id":241639575,"user":{"login":"erikras","id":4396759,"avatar_url":"https://avatars.githubusercontent.com/u/4396759?v=3","gravatar_id":"","url":"https://api.github.com/users/erikras","html_url":"https://github.com/erikras","followers_url":"https://api.github.com/users/erikras/followers","following_url":"https://api.github.com/users/erikras/following{/other_user}","gists_url":"https://api.github.com/users/erikras/gists{/gist_id}","starred_url":"https://api.github.com/users/erikras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikras/subscriptions","organizations_url":"https://api.github.com/users/erikras/orgs","repos_url":"https://api.github.com/users/erikras/repos","events_url":"https://api.github.com/users/erikras/events{/privacy}","received_events_url":"https://api.github.com/users/erikras/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T06:32:02Z","updated_at":"2016-08-23T06:32:02Z","body":"Yes, this should be done with [`initialValues`](http://redux-form.com/6.0.0-rc.5/docs/api/ReduxForm.md/#-initialvalues-object-string-string-optional-)."}}
{"actor":{"display_login":"erikras"}}