{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/2046","repository_url":"https://api.github.com/repos/erikras/redux-form","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/2046/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/2046/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/2046/events","html_url":"https://github.com/erikras/redux-form/issues/2046","id":186129437,"number":2046,"title":"How to let user clearing autofilled input text?","user":{"login":"redbaron76","id":1061849,"avatar_url":"https://avatars.githubusercontent.com/u/1061849?v=3","gravatar_id":"","url":"https://api.github.com/users/redbaron76","html_url":"https://github.com/redbaron76","followers_url":"https://api.github.com/users/redbaron76/followers","following_url":"https://api.github.com/users/redbaron76/following{/other_user}","gists_url":"https://api.github.com/users/redbaron76/gists{/gist_id}","starred_url":"https://api.github.com/users/redbaron76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redbaron76/subscriptions","organizations_url":"https://api.github.com/users/redbaron76/orgs","repos_url":"https://api.github.com/users/redbaron76/repos","events_url":"https://api.github.com/users/redbaron76/events{/privacy}","received_events_url":"https://api.github.com/users/redbaron76/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-30T10:50:38Z","updated_at":"2016-11-03T21:51:39Z","closed_at":"2016-11-03T21:51:39Z","body":"As asked in the title, how can I let a user interaction to clear an autofilled input text?\nI implemented a custom  `FieldItem` component in React Native and set the `onChangeText={(value) => onChange(value)}` correctly. The form behavior basically works but when I try to completely remove all the content of the TextInput, original autofilled state is re-applied again.\nSeems like empty value is not set onChange event.\n\n![cant_clear_field](https://cloud.githubusercontent.com/assets/1061849/19836065/7302b33c-9e96-11e6-826a-cbfdfa30ee63.gif)\n\nI also tried to dispatch an `change(form, field, '')` in case of empty text but without success.\n\nAny suggestion? Thanks.\n"},"comment":{"url":"https://api.github.com/repos/erikras/redux-form/issues/comments/258285067","html_url":"https://github.com/erikras/redux-form/issues/2046#issuecomment-258285067","issue_url":"https://api.github.com/repos/erikras/redux-form/issues/2046","id":258285067,"user":{"login":"redbaron76","id":1061849,"avatar_url":"https://avatars.githubusercontent.com/u/1061849?v=3","gravatar_id":"","url":"https://api.github.com/users/redbaron76","html_url":"https://github.com/redbaron76","followers_url":"https://api.github.com/users/redbaron76/followers","following_url":"https://api.github.com/users/redbaron76/following{/other_user}","gists_url":"https://api.github.com/users/redbaron76/gists{/gist_id}","starred_url":"https://api.github.com/users/redbaron76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redbaron76/subscriptions","organizations_url":"https://api.github.com/users/redbaron76/orgs","repos_url":"https://api.github.com/users/redbaron76/repos","events_url":"https://api.github.com/users/redbaron76/events{/privacy}","received_events_url":"https://api.github.com/users/redbaron76/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T21:51:38Z","updated_at":"2016-11-03T21:51:38Z","body":"Ok, my mistake. The trick is not to use action creators to pre-fill form fields. Instead, the prop `initialValues` is the one that should be use to achieve this goal. Putting `initialValues` inside `reduxForm()` or (better) in the `connect(mapStateToProps)` function which brings values from state, form is correctly pre-filled and any single field is fully editable."}}
{"actor":{"display_login":"redbaron76"}}