{"action":"closed","issue":{"url":"https://api.github.com/repos/cyclejs/cyclejs/issues/412","repository_url":"https://api.github.com/repos/cyclejs/cyclejs","labels_url":"https://api.github.com/repos/cyclejs/cyclejs/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/cyclejs/cyclejs/issues/412/comments","events_url":"https://api.github.com/repos/cyclejs/cyclejs/issues/412/events","html_url":"https://github.com/cyclejs/cyclejs/issues/412","id":174308009,"number":412,"title":"DOM driver doesn't receive events from inside the shadow dom","user":{"login":"tusharmath","id":194482,"avatar_url":"https://avatars.githubusercontent.com/u/194482?v=3","gravatar_id":"","url":"https://api.github.com/users/tusharmath","html_url":"https://github.com/tusharmath","followers_url":"https://api.github.com/users/tusharmath/followers","following_url":"https://api.github.com/users/tusharmath/following{/other_user}","gists_url":"https://api.github.com/users/tusharmath/gists{/gist_id}","starred_url":"https://api.github.com/users/tusharmath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tusharmath/subscriptions","organizations_url":"https://api.github.com/users/tusharmath/orgs","repos_url":"https://api.github.com/users/tusharmath/repos","events_url":"https://api.github.com/users/tusharmath/events{/privacy}","received_events_url":"https://api.github.com/users/tusharmath/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T15:43:07Z","updated_at":"2016-09-24T05:47:34Z","closed_at":"2016-09-24T05:47:34Z","body":"**Code to reproduce the issue:**\r\n```js\r\n\r\n// DOM element needs to have a parent other wise snabbdom won't render\r\nfunction createWrapperNode () {\r\n  const wrapper = document.createElement('x-wrapper')\r\n  const node = document.createElement('x-node')\r\n  wrapper.appendChild(node)\r\n  return {node, wrapper}\r\n}\r\n\r\n// Lifecycle method — http://www.html5rocks.com/en/tutorials/webcomponents/customelements/\r\nfunction createdCallback () {\r\n  const shadowRoot = this.createShadowRoot()\r\n  const {parent, node} = createWrapperNode()\r\n  this.__vNode = node\r\n  shadowRoot.appendChild(parent)\r\n  const drivers = {\r\n    DOM: makeDOMDriver(this.__vNode)\r\n  }\r\n}\r\n```\r\n\r\n\r\n**Expected behavior:**\r\n```js\r\nDOM.select('.some-selector').events('click') // should fire\r\n```\r\n\r\n\r\n**Actual behavior:**\r\nNo event is fired.\r\n\r\n**Versions of packages used:**\r\n```json\r\n    \"@cycle/dom\": \"^12.2.2\",\r\n    \"@cycle/rx-run\": \"^7.0.1\",\r\n    \"@cycle/xstream-run\": \"^3.1.0\",\r\n\r\n```\r\n\r\nCreating web components using cyclejs helps in having a consistent paradigm across the application. I have created a special driver to handle attribute changes but need help with the DOM driver."}}
{"actor":{"display_login":"tusharmath"}}