{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/1159","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/1159/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/1159/comments","events_url":"https://api.github.com/repos/facebook/react/issues/1159/events","html_url":"https://github.com/facebook/react/issues/1159","id":28086808,"number":1159,"title":"Provide a way to handle browser-autocompleted form values on controlled components","user":{"login":"ericflo","id":1228,"avatar_url":"https://avatars0.githubusercontent.com/u/1228?v=4","gravatar_id":"","url":"https://api.github.com/users/ericflo","html_url":"https://github.com/ericflo","followers_url":"https://api.github.com/users/ericflo/followers","following_url":"https://api.github.com/users/ericflo/following{/other_user}","gists_url":"https://api.github.com/users/ericflo/gists{/gist_id}","starred_url":"https://api.github.com/users/ericflo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericflo/subscriptions","organizations_url":"https://api.github.com/users/ericflo/orgs","repos_url":"https://api.github.com/users/ericflo/repos","events_url":"https://api.github.com/users/ericflo/events{/privacy}","received_events_url":"https://api.github.com/users/ericflo/received_events","type":"User","site_admin":false},"labels":[{"id":127893911,"url":"https://api.github.com/repos/facebook/react/labels/Component:%20DOM","name":"Component: DOM","color":"fef2c0","default":false},{"id":40929151,"url":"https://api.github.com/repos/facebook/react/labels/Type:%20Bug","name":"Type: Bug","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":34,"created_at":"2014-02-22T02:05:11Z","updated_at":"2018-03-08T19:18:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When there's a controlled component for form names that the user has saved in their browser (common with username/password fields), the browser will sometimes render the page with values in those fields without firing onChange events.  If the user submits the form, the component state does not reflect what is showing to the user.\n\nIn experimenting with this, it appears that the data is there on load (tested by logging this.refs.myinput.getDOMNode().value)\n"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/371593789","html_url":"https://github.com/facebook/react/issues/1159#issuecomment-371593789","issue_url":"https://api.github.com/repos/facebook/react/issues/1159","id":371593789,"user":{"login":"wlingke","id":3145536,"avatar_url":"https://avatars1.githubusercontent.com/u/3145536?v=4","gravatar_id":"","url":"https://api.github.com/users/wlingke","html_url":"https://github.com/wlingke","followers_url":"https://api.github.com/users/wlingke/followers","following_url":"https://api.github.com/users/wlingke/following{/other_user}","gists_url":"https://api.github.com/users/wlingke/gists{/gist_id}","starred_url":"https://api.github.com/users/wlingke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlingke/subscriptions","organizations_url":"https://api.github.com/users/wlingke/orgs","repos_url":"https://api.github.com/users/wlingke/repos","events_url":"https://api.github.com/users/wlingke/events{/privacy}","received_events_url":"https://api.github.com/users/wlingke/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T19:18:42Z","updated_at":"2018-03-08T19:18:42Z","author_association":"NONE","body":"@DominicTobias I previously tried both `change` and `input` events separately as well as both at once in that decorator but wasn't able to get it to work in my app. \r\n\r\nAlso I'm not sure if this changes things.. but there's a difference when autofilling ONE field versus autofilling MULTIPLE fields. The `input` event worked fine when autofilling one field. However, in mobile chrome you can actually autofill a set of fields at once from the keyboard (like firstname, lastname, email all with one tap).\r\n\r\nIn that second scenario, the decorator allows the first field autofills properly (first field meaning the field that is currently in focus). However, the decorator (which is attached to all 3 fields), doesn't seem to work on the other fields.\r\n"}}
{"actor":{"display_login":"wlingke"}}