{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/1887","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/1887/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/1887/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/1887/events","html_url":"https://github.com/ant-design/ant-design/issues/1887","id":157347914,"number":1887,"title":"Checkbox使用 控制台输出Warning","user":{"login":"zhenzong","id":16067461,"avatar_url":"https://avatars.githubusercontent.com/u/16067461?v=3","gravatar_id":"","url":"https://api.github.com/users/zhenzong","html_url":"https://github.com/zhenzong","followers_url":"https://api.github.com/users/zhenzong/followers","following_url":"https://api.github.com/users/zhenzong/following{/other_user}","gists_url":"https://api.github.com/users/zhenzong/gists{/gist_id}","starred_url":"https://api.github.com/users/zhenzong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhenzong/subscriptions","organizations_url":"https://api.github.com/users/zhenzong/orgs","repos_url":"https://api.github.com/users/zhenzong/repos","events_url":"https://api.github.com/users/zhenzong/events{/privacy}","received_events_url":"https://api.github.com/users/zhenzong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-28T17:06:53Z","updated_at":"2016-05-28T17:25:28Z","closed_at":"2016-05-28T17:25:28Z","body":"我在代码中使用：\r\n```\r\nimport { Checkbox, message } from 'antd';\r\nimport 'antd/lib/index.css';\r\n\r\nvar Agreement = React.createClass({\r\n    render: function() {\r\n        var text = this.props.isAgreed ? '我已经同意安全协议' : '同意安全协议';\r\n        return (\r\n            <Checkbox\r\n                defaultChecked={this.props.isAgreed} \r\n                onChange={ this.props.onAgreementCheck}>\r\n                {text}\r\n            </Checkbox>\r\n        );\r\n    }\r\n});\r\n```\r\n控制台提示：\r\nWarning: input is a void element tag and must not have `children` or use `props.dangerouslySetInnerHTML`. Check the render method of Checkbox.\r\n\r\nantd版本：^0.12.17\r\n浏览器： safari\r\n\r\n但是同样在safari上看官方的例子，并没有这个Warning， 是我哪里写错了？求指导。"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/222319730","html_url":"https://github.com/ant-design/ant-design/issues/1887#issuecomment-222319730","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/1887","id":222319730,"user":{"login":"afc163","id":507615,"avatar_url":"https://avatars.githubusercontent.com/u/507615?v=3","gravatar_id":"","url":"https://api.github.com/users/afc163","html_url":"https://github.com/afc163","followers_url":"https://api.github.com/users/afc163/followers","following_url":"https://api.github.com/users/afc163/following{/other_user}","gists_url":"https://api.github.com/users/afc163/gists{/gist_id}","starred_url":"https://api.github.com/users/afc163/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afc163/subscriptions","organizations_url":"https://api.github.com/users/afc163/orgs","repos_url":"https://api.github.com/users/afc163/repos","events_url":"https://api.github.com/users/afc163/events{/privacy}","received_events_url":"https://api.github.com/users/afc163/received_events","type":"User","site_admin":false},"created_at":"2016-05-28T17:25:28Z","updated_at":"2016-05-28T17:25:28Z","body":"http://ant.design/#/docs/react/changelog?scrollTo=1.0.0\r\n\r\n注意版本，看看升级文档。"}}
{"actor":{"display_login":"afc163"}}