{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/7871","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/7871/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/7871/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/7871/events","html_url":"https://github.com/ant-design/ant-design/issues/7871","id":264836038,"number":7871,"title":"Checkbox And Radio Label doesn`t work in TreeNode`s title","user":{"login":"Runtu4378","id":18112310,"avatar_url":"https://avatars2.githubusercontent.com/u/18112310?v=4","gravatar_id":"","url":"https://api.github.com/users/Runtu4378","html_url":"https://github.com/Runtu4378","followers_url":"https://api.github.com/users/Runtu4378/followers","following_url":"https://api.github.com/users/Runtu4378/following{/other_user}","gists_url":"https://api.github.com/users/Runtu4378/gists{/gist_id}","starred_url":"https://api.github.com/users/Runtu4378/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Runtu4378/subscriptions","organizations_url":"https://api.github.com/users/Runtu4378/orgs","repos_url":"https://api.github.com/users/Runtu4378/repos","events_url":"https://api.github.com/users/Runtu4378/events{/privacy}","received_events_url":"https://api.github.com/users/Runtu4378/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-12T07:11:25Z","updated_at":"2017-10-13T06:33:57Z","closed_at":"2017-10-12T09:59:21Z","author_association":"NONE","body":"### Version\r\n2.13.5\r\n\r\n### Environment\r\nwindow10、chrome\r\n\r\n### Reproduction link\r\n[https://codepen.io/Runtu/pen/NaBNJx?editors=0010](https://codepen.io/Runtu/pen/NaBNJx?editors=0010)\r\n\r\n### Steps to reproduce\r\n- code detail in [codepen](https://codepen.io/Runtu/pen/NaBNJx?editors=0010)\r\n\r\n### What is expected?\r\ni expect <Radio.Button> is work in treeNode title\r\n\r\n### What is actually happening?\r\nwhen i use Checkbox`s Button or Radio`s Button in TreeNode title, i found it is not work to select checkbox by click the label for the checkbox\r\n\r\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/336363271","html_url":"https://github.com/ant-design/ant-design/issues/7871#issuecomment-336363271","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/7871","id":336363271,"user":{"login":"Runtu4378","id":18112310,"avatar_url":"https://avatars2.githubusercontent.com/u/18112310?v=4","gravatar_id":"","url":"https://api.github.com/users/Runtu4378","html_url":"https://github.com/Runtu4378","followers_url":"https://api.github.com/users/Runtu4378/followers","following_url":"https://api.github.com/users/Runtu4378/following{/other_user}","gists_url":"https://api.github.com/users/Runtu4378/gists{/gist_id}","starred_url":"https://api.github.com/users/Runtu4378/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Runtu4378/subscriptions","organizations_url":"https://api.github.com/users/Runtu4378/orgs","repos_url":"https://api.github.com/users/Runtu4378/repos","events_url":"https://api.github.com/users/Runtu4378/events{/privacy}","received_events_url":"https://api.github.com/users/Runtu4378/received_events","type":"User","site_admin":false},"created_at":"2017-10-13T06:33:57Z","updated_at":"2017-10-13T06:33:57Z","author_association":"NONE","body":"@afc163 我可能描述的不是很清楚，具体情境可以看下这个 [demo](https://codepen.io/Runtu/pen/NaBNJx?editors=0010) 我用的是最新版(2.13.6)的 antd\r\n\r\n以下是问题描述：\r\n\r\n- 在 **\"Effective Example\"** 里面的 `<checkbox />` 元素: 可以正常的通过点击 `<label />` 中的  `<span>Effective Checkbox Label</span>` 标签来选中该 checkbox\r\n- 在 **\"Failed Example\"**: 里面的 `<checkbox />` 元素: 不灵光了，我点击`<label />` 中的  `<span>Failed Checkbox Label</span>` 标签没有反应，甚至连 `onClick` 函数都无法被触发，我尝试调整 `z-index` 属性，不过也没有效果。\r\n- 上面这种情况最严重的影响是 `<RadioButton />` 无法在 `<TreeNode />` 中使用\r\n\r\n@afc163 I think I may not express clearly. Look at this [example](https://codepen.io/Runtu/pen/NaBNJx?editors=0010), i use newest antd(2.13.6).\r\n\r\nThe BUG still the same：\r\n\r\n- The `<checkbox />` in **\"Effective Example\"**: i can select checkbox by click the `<span>Effective Checkbox Label</span>` in `<label />`\r\n- The `<checkbox />` in **\"Failed Example\"**: it not work, when i click `<span>Failed Checkbox Label</span>` , the check not to be check, only that i click the `<input type=\"checkbox\" class=\"ant-checkbox-input\" value=\"on\">` will it take effect.\r\n- The same reason，it affects to the `<RadioButton />`  in `<TreeNode />`, it can not trigger a `onClick` function"}}
{"actor":{"display_login":"Runtu4378"}}