{"action":"opened","issue":{"url":"https://api.github.com/repos/cyclejs/cycle-web/issues/4","labels_url":"https://api.github.com/repos/cyclejs/cycle-web/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/cyclejs/cycle-web/issues/4/comments","events_url":"https://api.github.com/repos/cyclejs/cycle-web/issues/4/events","html_url":"https://github.com/cyclejs/cycle-web/issues/4","id":90724762,"number":4,"title":"Custom element with varying root element loses its event handlers","user":{"login":"staltz","id":90512,"avatar_url":"https://avatars.githubusercontent.com/u/90512?v=3","gravatar_id":"","url":"https://api.github.com/users/staltz","html_url":"https://github.com/staltz","followers_url":"https://api.github.com/users/staltz/followers","following_url":"https://api.github.com/users/staltz/following{/other_user}","gists_url":"https://api.github.com/users/staltz/gists{/gist_id}","starred_url":"https://api.github.com/users/staltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staltz/subscriptions","organizations_url":"https://api.github.com/users/staltz/orgs","repos_url":"https://api.github.com/users/staltz/repos","events_url":"https://api.github.com/users/staltz/events{/privacy}","received_events_url":"https://api.github.com/users/staltz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cyclejs/cycle-web/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-24T16:24:53Z","updated_at":"2015-06-24T16:24:53Z","closed_at":null,"body":"_From @staltz on May 31, 2015 13:24_\n\nTo reproduce, take the synthetic/nested example, change the custom element to use `h(content < 500 ? 'h2.innerRoot' : 'h3.innerRoot', ...)` as the vtree. Then when clicking the custom element, event handlers might be temporarily pointing to the wrong element. Also notice the lack of switching functionality in diff and patch, which makes the top-most diff and patch emit on rawRootElem$ multiple consecutive times because of previous unremoved waitForChildrenStreams still emitting.\n\n_Copied from original issue: cyclejs/cycle-core#127_"}}