{"action":"created","issue":{"url":"https://api.github.com/repos/mui-org/material-ui/issues/9207","repository_url":"https://api.github.com/repos/mui-org/material-ui","labels_url":"https://api.github.com/repos/mui-org/material-ui/issues/9207/labels{/name}","comments_url":"https://api.github.com/repos/mui-org/material-ui/issues/9207/comments","events_url":"https://api.github.com/repos/mui-org/material-ui/issues/9207/events","html_url":"https://github.com/mui-org/material-ui/issues/9207","id":275033282,"node_id":"MDU6SXNzdWUyNzUwMzMyODI=","number":9207,"title":"Respect Node.ownerDocument of anchorEl when creating portal for Menu","user":{"login":"ianschmitz","id":6355370,"node_id":"MDQ6VXNlcjYzNTUzNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/6355370?v=4","gravatar_id":"","url":"https://api.github.com/users/ianschmitz","html_url":"https://github.com/ianschmitz","followers_url":"https://api.github.com/users/ianschmitz/followers","following_url":"https://api.github.com/users/ianschmitz/following{/other_user}","gists_url":"https://api.github.com/users/ianschmitz/gists{/gist_id}","starred_url":"https://api.github.com/users/ianschmitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianschmitz/subscriptions","organizations_url":"https://api.github.com/users/ianschmitz/orgs","repos_url":"https://api.github.com/users/ianschmitz/repos","events_url":"https://api.github.com/users/ianschmitz/events{/privacy}","received_events_url":"https://api.github.com/users/ianschmitz/received_events","type":"User","site_admin":false},"labels":[{"id":122764862,"node_id":"MDU6TGFiZWwxMjI3NjQ4NjI=","url":"https://api.github.com/repos/mui-org/material-ui/labels/bug","name":"bug","color":"e11d21","default":true},{"id":772659812,"node_id":"MDU6TGFiZWw3NzI2NTk4MTI=","url":"https://api.github.com/repos/mui-org/material-ui/labels/component:%20Portal","name":"component: Portal","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":{"login":"oliviertassinari","id":3165635,"node_id":"MDQ6VXNlcjMxNjU2MzU=","avatar_url":"https://avatars2.githubusercontent.com/u/3165635?v=4","gravatar_id":"","url":"https://api.github.com/users/oliviertassinari","html_url":"https://github.com/oliviertassinari","followers_url":"https://api.github.com/users/oliviertassinari/followers","following_url":"https://api.github.com/users/oliviertassinari/following{/other_user}","gists_url":"https://api.github.com/users/oliviertassinari/gists{/gist_id}","starred_url":"https://api.github.com/users/oliviertassinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliviertassinari/subscriptions","organizations_url":"https://api.github.com/users/oliviertassinari/orgs","repos_url":"https://api.github.com/users/oliviertassinari/repos","events_url":"https://api.github.com/users/oliviertassinari/events{/privacy}","received_events_url":"https://api.github.com/users/oliviertassinari/received_events","type":"User","site_admin":false},"assignees":[{"login":"oliviertassinari","id":3165635,"node_id":"MDQ6VXNlcjMxNjU2MzU=","avatar_url":"https://avatars2.githubusercontent.com/u/3165635?v=4","gravatar_id":"","url":"https://api.github.com/users/oliviertassinari","html_url":"https://github.com/oliviertassinari","followers_url":"https://api.github.com/users/oliviertassinari/followers","following_url":"https://api.github.com/users/oliviertassinari/following{/other_user}","gists_url":"https://api.github.com/users/oliviertassinari/gists{/gist_id}","starred_url":"https://api.github.com/users/oliviertassinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliviertassinari/subscriptions","organizations_url":"https://api.github.com/users/oliviertassinari/orgs","repos_url":"https://api.github.com/users/oliviertassinari/repos","events_url":"https://api.github.com/users/oliviertassinari/events{/privacy}","received_events_url":"https://api.github.com/users/oliviertassinari/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/mui-org/material-ui/milestones/14","html_url":"https://github.com/mui-org/material-ui/milestone/14","labels_url":"https://api.github.com/repos/mui-org/material-ui/milestones/14/labels","id":1582007,"node_id":"MDk6TWlsZXN0b25lMTU4MjAwNw==","number":14,"title":"release of v1.0.0","description":"","creator":{"login":"alitaheri","id":8528759,"node_id":"MDQ6VXNlcjg1Mjg3NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/8528759?v=4","gravatar_id":"","url":"https://api.github.com/users/alitaheri","html_url":"https://github.com/alitaheri","followers_url":"https://api.github.com/users/alitaheri/followers","following_url":"https://api.github.com/users/alitaheri/following{/other_user}","gists_url":"https://api.github.com/users/alitaheri/gists{/gist_id}","starred_url":"https://api.github.com/users/alitaheri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alitaheri/subscriptions","organizations_url":"https://api.github.com/users/alitaheri/orgs","repos_url":"https://api.github.com/users/alitaheri/repos","events_url":"https://api.github.com/users/alitaheri/events{/privacy}","received_events_url":"https://api.github.com/users/alitaheri/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":121,"state":"closed","created_at":"2016-02-14T16:34:47Z","updated_at":"2018-05-19T14:45:13Z","due_on":"2018-05-17T07:00:00Z","closed_at":"2018-05-19T14:45:13Z"},"comments":8,"created_at":"2017-11-18T00:14:42Z","updated_at":"2018-10-20T13:54:37Z","closed_at":"2017-12-27T07:47:54Z","author_association":"CONTRIBUTOR","body":"<!--- Provide a general summary of the issue in the Title above -->\r\n\r\n<!--\r\n    Thank you very much for contributing to Material-UI by creating an issue! ❤️\r\n    To avoid duplicate issues we ask you to check off the following list.\r\n-->\r\n\r\n<!-- Checked checkbox should look like this: [x] -->\r\n- [x] I have searched the [issues](https://github.com/callemall/material-ui/issues) of this repository and believe that this is not a duplicate.\r\n\r\n## Expected Behavior\r\nWhen opening a Menu and creating a react portal, the portal that's created should reference the `Node.ownerDocument` of the `anchorEl` or something similar, to support rendering Material-UI components in a new window (such as through a library like [react-popout](https://github.com/JakeGinnivan/react-popout))\r\n\r\n## Current Behavior\r\nThe portal that is created always uses the global `document` object to append a portal div to. See: https://github.com/callemall/material-ui/blob/08fae8c2fcd741c01cabbee38305d5ef109acfd5/src/internal/Portal.js#L45-L55\r\n\r\n## Steps to Reproduce (for bugs)\r\nA simple example can be seen here: https://codesandbox.io/s/v09qklqkj7. You can ignore the lack of styling and what not in the popout window, just trying to show the portal issue.\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment with which you experienced the bug. -->\r\n\r\n| Tech         | Version |\r\n|--------------|---------|\r\n| Material-UI  |  1.0.0-beta.21       |\r\n| React        |     16    |\r\n| browser      |  All       |\r\n"},"comment":{"url":"https://api.github.com/repos/mui-org/material-ui/issues/comments/431583948","html_url":"https://github.com/mui-org/material-ui/issues/9207#issuecomment-431583948","issue_url":"https://api.github.com/repos/mui-org/material-ui/issues/9207","id":431583948,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU4Mzk0OA==","user":{"login":"ianschmitz","id":6355370,"node_id":"MDQ6VXNlcjYzNTUzNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/6355370?v=4","gravatar_id":"","url":"https://api.github.com/users/ianschmitz","html_url":"https://github.com/ianschmitz","followers_url":"https://api.github.com/users/ianschmitz/followers","following_url":"https://api.github.com/users/ianschmitz/following{/other_user}","gists_url":"https://api.github.com/users/ianschmitz/gists{/gist_id}","starred_url":"https://api.github.com/users/ianschmitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianschmitz/subscriptions","organizations_url":"https://api.github.com/users/ianschmitz/orgs","repos_url":"https://api.github.com/users/ianschmitz/repos","events_url":"https://api.github.com/users/ianschmitz/events{/privacy}","received_events_url":"https://api.github.com/users/ianschmitz/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T13:54:37Z","updated_at":"2018-10-20T13:54:37Z","author_association":"CONTRIBUTOR","body":"@oliviertassinari the tricky part is getting JSS to play nicely. Let me know if you have questions!"}}
{"actor":{"display_login":"ianschmitz"}}