{"action":"closed","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/937","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/937/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/937/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/937/events","html_url":"https://github.com/Polymer/polymer/issues/937","id":49155769,"number":937,"title":"Paper-Dialog nested event handling and scoped styling","user":{"login":"thecaddy","id":1521981,"avatar_url":"https://avatars.githubusercontent.com/u/1521981?v=3","gravatar_id":"","url":"https://api.github.com/users/thecaddy","html_url":"https://github.com/thecaddy","followers_url":"https://api.github.com/users/thecaddy/followers","following_url":"https://api.github.com/users/thecaddy/following{/other_user}","gists_url":"https://api.github.com/users/thecaddy/gists{/gist_id}","starred_url":"https://api.github.com/users/thecaddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecaddy/subscriptions","organizations_url":"https://api.github.com/users/thecaddy/orgs","repos_url":"https://api.github.com/users/thecaddy/repos","events_url":"https://api.github.com/users/thecaddy/events{/privacy}","received_events_url":"https://api.github.com/users/thecaddy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Polymer/polymer/labels/0.5","name":"0.5","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-17T22:41:47Z","updated_at":"2015-10-23T23:19:53Z","closed_at":"2015-10-23T23:19:53Z","body":"With the latest update 0.5.1 the paper-dialog component no longer attaches to the parent:\r\n\r\n```\r\n<my-parents>\r\n  <paper-dialog>\r\n    <paper-button on-click={{myFunction}}></paper-dialog>\r\n  </paper-dialog>\r\n</my-parent>\r\n```\r\n\r\nThis will attach to the body:\r\n```\r\n<body>\r\n  <core-overlay-layer>\r\n    <overlay-host>\r\n     <paper-dialog>\r\n       //where the click event happens\r\n       <paper-button on-click={{myFunction}}></paper-button>\r\n     </paper-dialog>\r\n    </overlay-host>\r\n  </core-overlay-layer>\r\n</body>\r\n```\r\n\r\nThis loses context of the parent element and thus context of the event being fired.  Is there a recommended pattern to handling the events and a way for adding styling so it doesn't have to be in global context?\r\n"}}