{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/2197","repository_url":"https://api.github.com/repos/erikras/redux-form","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/2197/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/2197/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/2197/events","html_url":"https://github.com/erikras/redux-form/issues/2197","id":192762938,"node_id":"MDU6SXNzdWUxOTI3NjI5Mzg=","number":2197,"title":"input.value is set to event when left blank (before the touch event)","user":{"login":"oyeanuj","id":9633371,"node_id":"MDQ6VXNlcjk2MzMzNzE=","avatar_url":"https://avatars2.githubusercontent.com/u/9633371?v=4","gravatar_id":"","url":"https://api.github.com/users/oyeanuj","html_url":"https://github.com/oyeanuj","followers_url":"https://api.github.com/users/oyeanuj/followers","following_url":"https://api.github.com/users/oyeanuj/following{/other_user}","gists_url":"https://api.github.com/users/oyeanuj/gists{/gist_id}","starred_url":"https://api.github.com/users/oyeanuj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oyeanuj/subscriptions","organizations_url":"https://api.github.com/users/oyeanuj/orgs","repos_url":"https://api.github.com/users/oyeanuj/repos","events_url":"https://api.github.com/users/oyeanuj/events{/privacy}","received_events_url":"https://api.github.com/users/oyeanuj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-01T06:15:46Z","updated_at":"2018-12-07T03:59:27Z","closed_at":"2017-12-06T23:07:07Z","author_association":"CONTRIBUTOR","body":"Hey @erikras! I am running into a strange issue (on the latest 6.2.1) with `input.value` while using a custom component and passing `event` to the `input.onChange` function. \r\n\r\nIf I delete the existing value, `input.value` is set with the value of the event until the `@@TOUCH` event is fired when it is reset to the '' value. The payload of the @@CHANGE action is set to the event as well.\r\n\r\nIf, instead of passing `event`, I pass the `event.target.value`, then everything works as expected.\r\n\r\nHere is my code:\r\n\r\n```jsx\r\nrenderDebouncedInput = (field) => {\r\n  const { handleSubmit, onChangeSubmit } = this.props;\r\n  //const value = typeof(field.input.value) == 'object' ? field.input.value.target.value : field.input.value;\r\n\r\n  console.log(\"boo\", field.name, field.input.value);\r\n  return (\r\n    <DebounceInput\r\n      debounceTimeout = {500}\r\n      onChange = {(event) => {\r\n        field.input.onChange(event); //<- CREATES THE STRANGE ISSUE\r\n        //field.input.onChange(event.target.value); //<- ALL GOOD HERE!\r\n        handleSubmit((values, dispatch, props) => {\r\n          const newValues = values;\r\n          newValues[field.name] = event.target.value;\r\n          return onChangeSubmit(newValues, dispatch, props);\r\n        })();\r\n      }}\r\n      value = {field.input.value}\r\n    />\r\n  );\r\n};\r\n```\r\n\r\nAny thoughts?"},"comment":{"url":"https://api.github.com/repos/erikras/redux-form/issues/comments/445115404","html_url":"https://github.com/erikras/redux-form/issues/2197#issuecomment-445115404","issue_url":"https://api.github.com/repos/erikras/redux-form/issues/2197","id":445115404,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTExNTQwNA==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-12-07T03:59:27Z","updated_at":"2018-12-07T03:59:27Z","author_association":"NONE","body":"This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.\n"}}
{"actor":{"display_login":"lock"}}