{"action":"created","issue":{"url":"https://api.github.com/repos/callemall/material-ui/issues/7970","repository_url":"https://api.github.com/repos/callemall/material-ui","labels_url":"https://api.github.com/repos/callemall/material-ui/issues/7970/labels{/name}","comments_url":"https://api.github.com/repos/callemall/material-ui/issues/7970/comments","events_url":"https://api.github.com/repos/callemall/material-ui/issues/7970/events","html_url":"https://github.com/callemall/material-ui/issues/7970","id":254248547,"number":7970,"title":"Testing Drawer on 1V","user":{"login":"marcoturi","id":314901,"avatar_url":"https://avatars2.githubusercontent.com/u/314901?v=4","gravatar_id":"","url":"https://api.github.com/users/marcoturi","html_url":"https://github.com/marcoturi","followers_url":"https://api.github.com/users/marcoturi/followers","following_url":"https://api.github.com/users/marcoturi/following{/other_user}","gists_url":"https://api.github.com/users/marcoturi/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoturi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoturi/subscriptions","organizations_url":"https://api.github.com/users/marcoturi/orgs","repos_url":"https://api.github.com/users/marcoturi/repos","events_url":"https://api.github.com/users/marcoturi/events{/privacy}","received_events_url":"https://api.github.com/users/marcoturi/received_events","type":"User","site_admin":false},"labels":[{"id":460199189,"url":"https://api.github.com/repos/callemall/material-ui/labels/component:%20Drawer","name":"component: Drawer","color":"ffffff","default":false},{"id":416834291,"url":"https://api.github.com/repos/callemall/material-ui/labels/v1","name":"v1","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T08:00:20Z","updated_at":"2017-08-31T08:52:13Z","closed_at":"2017-08-31T08:52:13Z","author_association":"NONE","body":"### Problem description\r\nHi, I'm getting same trouble while testing the drawer component. This is the code of the component:\r\n\r\n```\r\n  (<div>1\r\n    <Drawer open onClick={() => props.toggleMenu()}>\r\n      <div>2</div>\r\n    </Drawer>\r\n  </div>),\r\n```\r\nand this is the rendered version by mount() (the mount version provided by material-ui):\r\n\r\n```\r\n<div>\r\n        1\r\n        <withStyles(Drawer) open={true} onClick={[Function]}>\r\n          <Drawer classes={{...}} theme={{...}} open={true} onClick={[Function]} anchor=\"left\" docked={false} enterTransitionDuration={225} leaveTransitionDuration={195} elevation={16}>\r\n            <withStyles(Modal) backdropTransitionDuration={225} className=\"MuiDrawer-modal-13\" onClick={[Function]} show={true}>\r\n              <Modal classes={{...}} backdropTransitionDuration={225} className=\"MuiDrawer-modal-13\" onClick={[Function]} show={true} backdropComponent={[Function]} backdropInvisible={false} keepMounted={false} disableBackdrop={false} ignoreBackdropClick={false} ignoreEscapeKeyUp={false} modalManager={{...}}>\r\n                <Portal open={true} />\r\n              </Modal>\r\n            </withStyles(Modal)>\r\n          </Drawer>\r\n        </withStyles(Drawer)>\r\n      </div>\r\n```\r\nAs you can see there is no `<div>2</div>` even though the drawer is open.\r\n\r\n### Versions\r\n\r\n- Material-UI:  1.0.0B6\r\n- React: 15.4.1\r\n- Browser: Chrome 60\r\n"},"comment":{"url":"https://api.github.com/repos/callemall/material-ui/issues/comments/326233061","html_url":"https://github.com/callemall/material-ui/issues/7970#issuecomment-326233061","issue_url":"https://api.github.com/repos/callemall/material-ui/issues/7970","id":326233061,"user":{"login":"oliviertassinari","id":3165635,"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},"created_at":"2017-08-31T08:52:13Z","updated_at":"2017-08-31T08:52:13Z","author_association":"MEMBER","body":"The content of the Drawer is provided to the Portal component. This component is used to escape the DOM parent elements. The <div>2</div> is injected right in the body. You can look for `data-mui-portal=\"true\"` or add your own identifier to the node. Also, have a look at how we test the component internally."}}
{"actor":{"display_login":"oliviertassinari"}}