{"action":"created","issue":{"url":"https://api.github.com/repos/Yomguithereal/react-blessed/issues/45","labels_url":"https://api.github.com/repos/Yomguithereal/react-blessed/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/Yomguithereal/react-blessed/issues/45/comments","events_url":"https://api.github.com/repos/Yomguithereal/react-blessed/issues/45/events","html_url":"https://github.com/Yomguithereal/react-blessed/pull/45","id":124742778,"number":45,"title":"update _currentElement to nextElement to trigger correct event handlers","user":{"login":"davidmarkclements","id":1190716,"avatar_url":"https://avatars.githubusercontent.com/u/1190716?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmarkclements","html_url":"https://github.com/davidmarkclements","followers_url":"https://api.github.com/users/davidmarkclements/followers","following_url":"https://api.github.com/users/davidmarkclements/following{/other_user}","gists_url":"https://api.github.com/users/davidmarkclements/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmarkclements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmarkclements/subscriptions","organizations_url":"https://api.github.com/users/davidmarkclements/orgs","repos_url":"https://api.github.com/users/davidmarkclements/repos","events_url":"https://api.github.com/users/davidmarkclements/events{/privacy}","received_events_url":"https://api.github.com/users/davidmarkclements/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-04T11:34:01Z","updated_at":"2016-01-05T11:19:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Yomguithereal/react-blessed/pulls/45","html_url":"https://github.com/Yomguithereal/react-blessed/pull/45","diff_url":"https://github.com/Yomguithereal/react-blessed/pull/45.diff","patch_url":"https://github.com/Yomguithereal/react-blessed/pull/45.patch"},"body":"it seems in some cases old event handlers from a prior render are triggered instead of the latest event handlers - this includes an event handler that accesses a scope reference, the value of the reference from a prior render applies instead of the most up to date reference (e.g. a boolean may have changed from true to false, but the old event handler still references the old `true` value). \r\n\r\nThis is due to  `this._currentElement` being accessed in the event listener, but not being updated in cases where a re-render leads to the creation of a new element. "},"comment":{"url":"https://api.github.com/repos/Yomguithereal/react-blessed/issues/comments/168975251","html_url":"https://github.com/Yomguithereal/react-blessed/pull/45#issuecomment-168975251","issue_url":"https://api.github.com/repos/Yomguithereal/react-blessed/issues/45","id":168975251,"user":{"login":"davidmarkclements","id":1190716,"avatar_url":"https://avatars.githubusercontent.com/u/1190716?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmarkclements","html_url":"https://github.com/davidmarkclements","followers_url":"https://api.github.com/users/davidmarkclements/followers","following_url":"https://api.github.com/users/davidmarkclements/following{/other_user}","gists_url":"https://api.github.com/users/davidmarkclements/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmarkclements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmarkclements/subscriptions","organizations_url":"https://api.github.com/users/davidmarkclements/orgs","repos_url":"https://api.github.com/users/davidmarkclements/repos","events_url":"https://api.github.com/users/davidmarkclements/events{/privacy}","received_events_url":"https://api.github.com/users/davidmarkclements/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T11:19:58Z","updated_at":"2016-01-05T11:19:58Z","body":"@Yomguithereal - would a hangouts session with explanations help to clear these PR's?"}}