{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/10854","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/10854/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/10854/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/10854/events","html_url":"https://github.com/ant-design/ant-design/issues/10854","id":330831615,"node_id":"MDU6SXNzdWUzMzA4MzE2MTU=","number":10854,"title":"ios11 needs to double-click to trigger the upload function","user":{"login":"mrcaobin","id":5018632,"node_id":"MDQ6VXNlcjUwMTg2MzI=","avatar_url":"https://avatars3.githubusercontent.com/u/5018632?v=4","gravatar_id":"","url":"https://api.github.com/users/mrcaobin","html_url":"https://github.com/mrcaobin","followers_url":"https://api.github.com/users/mrcaobin/followers","following_url":"https://api.github.com/users/mrcaobin/following{/other_user}","gists_url":"https://api.github.com/users/mrcaobin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrcaobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrcaobin/subscriptions","organizations_url":"https://api.github.com/users/mrcaobin/orgs","repos_url":"https://api.github.com/users/mrcaobin/repos","events_url":"https://api.github.com/users/mrcaobin/events{/privacy}","received_events_url":"https://api.github.com/users/mrcaobin/received_events","type":"User","site_admin":false},"labels":[{"id":731403428,"node_id":"MDU6TGFiZWw3MzE0MDM0Mjg=","url":"https://api.github.com/repos/ant-design/ant-design/labels/Inactive","name":"Inactive","color":"cccccc","default":false}],"state":"closed","locked":false,"assignee":{"login":"zombieJ","id":5378891,"node_id":"MDQ6VXNlcjUzNzg4OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/5378891?v=4","gravatar_id":"","url":"https://api.github.com/users/zombieJ","html_url":"https://github.com/zombieJ","followers_url":"https://api.github.com/users/zombieJ/followers","following_url":"https://api.github.com/users/zombieJ/following{/other_user}","gists_url":"https://api.github.com/users/zombieJ/gists{/gist_id}","starred_url":"https://api.github.com/users/zombieJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zombieJ/subscriptions","organizations_url":"https://api.github.com/users/zombieJ/orgs","repos_url":"https://api.github.com/users/zombieJ/repos","events_url":"https://api.github.com/users/zombieJ/events{/privacy}","received_events_url":"https://api.github.com/users/zombieJ/received_events","type":"User","site_admin":false},"assignees":[{"login":"zombieJ","id":5378891,"node_id":"MDQ6VXNlcjUzNzg4OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/5378891?v=4","gravatar_id":"","url":"https://api.github.com/users/zombieJ","html_url":"https://github.com/zombieJ","followers_url":"https://api.github.com/users/zombieJ/followers","following_url":"https://api.github.com/users/zombieJ/following{/other_user}","gists_url":"https://api.github.com/users/zombieJ/gists{/gist_id}","starred_url":"https://api.github.com/users/zombieJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zombieJ/subscriptions","organizations_url":"https://api.github.com/users/zombieJ/orgs","repos_url":"https://api.github.com/users/zombieJ/repos","events_url":"https://api.github.com/users/zombieJ/events{/privacy}","received_events_url":"https://api.github.com/users/zombieJ/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-06-08T23:43:32Z","updated_at":"2018-08-18T03:35:13Z","closed_at":"2018-08-08T11:45:48Z","author_association":"NONE","body":"- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.\r\n\r\n### Version\r\n3.6.0\r\n\r\n### Environment\r\nwindows，chrome，iphone safri\r\n\r\n### Reproduction link\r\n[Https://ant.design/components/upload-cn/](Https://ant.design/components/upload-cn/)\r\n\r\n### Steps to reproduce\r\nupload 控件在iphone手机上，ios11中，需要点击2次才能触发；ios10则完全触发不了。安卓正常\r\n\r\n### What is expected?\r\n点击一次即可触发上传文件选择框。\r\n网站是PC和手机端共同适配的，所以选择用antd，没用antd-mobile\r\n\r\n### What is actually happening?\r\nios11中，需要点击2次才能触发；ios10则完全触发不了\r\n\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/414029260","html_url":"https://github.com/ant-design/ant-design/issues/10854#issuecomment-414029260","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/10854","id":414029260,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDAyOTI2MA==","user":{"login":"nannongrousong","id":37995042,"node_id":"MDQ6VXNlcjM3OTk1MDQy","avatar_url":"https://avatars0.githubusercontent.com/u/37995042?v=4","gravatar_id":"","url":"https://api.github.com/users/nannongrousong","html_url":"https://github.com/nannongrousong","followers_url":"https://api.github.com/users/nannongrousong/followers","following_url":"https://api.github.com/users/nannongrousong/following{/other_user}","gists_url":"https://api.github.com/users/nannongrousong/gists{/gist_id}","starred_url":"https://api.github.com/users/nannongrousong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nannongrousong/subscriptions","organizations_url":"https://api.github.com/users/nannongrousong/orgs","repos_url":"https://api.github.com/users/nannongrousong/repos","events_url":"https://api.github.com/users/nannongrousong/events{/privacy}","received_events_url":"https://api.github.com/users/nannongrousong/received_events","type":"User","site_admin":false},"created_at":"2018-08-18T03:35:13Z","updated_at":"2018-08-18T03:35:13Z","author_association":"NONE","body":"参考：https://segmentfault.com/a/1190000009246194\r\n\r\n那就有解决方案了，在你实际点击的那个元素上添加class[needsclick]\r\n注意，一定是【你页面中实际点击的那个元素】。\r\n但在不同场景下，picture-card或picture或text下，页面中显示的元素也不一样，有 .antd-upload-text 也也有普通  <span>，所以你实际点击的元素每次都不一样，那怎么办？\r\n碰到这种问题不要太温柔了，粗暴一点，componentDidMount中给Upload所有子元素（递归）添加class[needclick]\r\nover！"}}
{"actor":{"display_login":"nannongrousong"}}