{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-autocomplete/issues/258","repository_url":"https://api.github.com/repos/reactjs/react-autocomplete","labels_url":"https://api.github.com/repos/reactjs/react-autocomplete/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-autocomplete/issues/258/comments","events_url":"https://api.github.com/repos/reactjs/react-autocomplete/issues/258/events","html_url":"https://github.com/reactjs/react-autocomplete/pull/258","id":243728840,"number":258,"title":"Fix binding error with preact-compat","user":{"login":"bgelineau","id":1941277,"avatar_url":"https://avatars2.githubusercontent.com/u/1941277?v=4","gravatar_id":"","url":"https://api.github.com/users/bgelineau","html_url":"https://github.com/bgelineau","followers_url":"https://api.github.com/users/bgelineau/followers","following_url":"https://api.github.com/users/bgelineau/following{/other_user}","gists_url":"https://api.github.com/users/bgelineau/gists{/gist_id}","starred_url":"https://api.github.com/users/bgelineau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgelineau/subscriptions","organizations_url":"https://api.github.com/users/bgelineau/orgs","repos_url":"https://api.github.com/users/bgelineau/repos","events_url":"https://api.github.com/users/bgelineau/events{/privacy}","received_events_url":"https://api.github.com/users/bgelineau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-18T14:07:48Z","updated_at":"2017-07-19T08:52:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/reactjs/react-autocomplete/pulls/258","html_url":"https://github.com/reactjs/react-autocomplete/pull/258","diff_url":"https://github.com/reactjs/react-autocomplete/pull/258.diff","patch_url":"https://github.com/reactjs/react-autocomplete/pull/258.patch"},"body":"When using ``preact-compat``, the updater function passed to the ``setState`` method is not called in the context of the class. Thus, ``ensureHighlightedIndex`` and ``maybeAutoCompleteText`` crash when calling ``this``, which is undefined."},"comment":{"url":"https://api.github.com/repos/reactjs/react-autocomplete/issues/comments/316317964","html_url":"https://github.com/reactjs/react-autocomplete/pull/258#issuecomment-316317964","issue_url":"https://api.github.com/repos/reactjs/react-autocomplete/issues/258","id":316317964,"user":{"login":"bgelineau","id":1941277,"avatar_url":"https://avatars2.githubusercontent.com/u/1941277?v=4","gravatar_id":"","url":"https://api.github.com/users/bgelineau","html_url":"https://github.com/bgelineau","followers_url":"https://api.github.com/users/bgelineau/followers","following_url":"https://api.github.com/users/bgelineau/following{/other_user}","gists_url":"https://api.github.com/users/bgelineau/gists{/gist_id}","starred_url":"https://api.github.com/users/bgelineau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgelineau/subscriptions","organizations_url":"https://api.github.com/users/bgelineau/orgs","repos_url":"https://api.github.com/users/bgelineau/repos","events_url":"https://api.github.com/users/bgelineau/events{/privacy}","received_events_url":"https://api.github.com/users/bgelineau/received_events","type":"User","site_admin":false},"created_at":"2017-07-19T08:52:18Z","updated_at":"2017-07-19T08:52:18Z","body":"Hi! No problem, here is the new version without the bind operator.\r\n\r\nIndeed, from what I've seen (and jest), your code already works with stage 3 + class properties."}}
{"actor":{"display_login":"bgelineau"}}