{"action":"opened","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/10811","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/10811/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/10811/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/10811/events","html_url":"https://github.com/ant-design/ant-design/issues/10811","id":329796167,"node_id":"MDU6SXNzdWUzMjk3OTYxNjc=","number":10811,"title":"Modal (rc-dialog, rc-trigger) could provide interface like \"isUseCreatePortal\"","user":{"login":"swchenforgetful","id":1032228,"node_id":"MDQ6VXNlcjEwMzIyMjg=","avatar_url":"https://avatars0.githubusercontent.com/u/1032228?v=4","gravatar_id":"","url":"https://api.github.com/users/swchenforgetful","html_url":"https://github.com/swchenforgetful","followers_url":"https://api.github.com/users/swchenforgetful/followers","following_url":"https://api.github.com/users/swchenforgetful/following{/other_user}","gists_url":"https://api.github.com/users/swchenforgetful/gists{/gist_id}","starred_url":"https://api.github.com/users/swchenforgetful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swchenforgetful/subscriptions","organizations_url":"https://api.github.com/users/swchenforgetful/orgs","repos_url":"https://api.github.com/users/swchenforgetful/repos","events_url":"https://api.github.com/users/swchenforgetful/events{/privacy}","received_events_url":"https://api.github.com/users/swchenforgetful/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-06T09:50:33Z","updated_at":"2018-06-06T09:50:33Z","closed_at":null,"author_association":"NONE","body":"as we know, ``React 16`` add new api ``ReactDOM.createPortal`` , and the portal will propagation event to parent. for it's name ``protal`` , this behavior maybe make sense, but it also takes many trouble(https://github.com/facebook/react/issues/11387)\r\n\r\nI think the component named \"Modal\" should not share event with the parent. I find ``rc-dialog`` use `` IS_REACT_16 = !!ReactDOM.createPortal;`` to make compatible with ``React 16-`` . I think ``Modal`` could  provide interface like \"isUseCreatePortal\" .\r\n\r\n"}}
{"actor":{"display_login":"swchenforgetful"}}