{"action":"created","issue":{"url":"https://api.github.com/repos/react-dropzone/react-dropzone/issues/588","repository_url":"https://api.github.com/repos/react-dropzone/react-dropzone","labels_url":"https://api.github.com/repos/react-dropzone/react-dropzone/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/react-dropzone/react-dropzone/issues/588/comments","events_url":"https://api.github.com/repos/react-dropzone/react-dropzone/issues/588/events","html_url":"https://github.com/react-dropzone/react-dropzone/issues/588","id":308841064,"node_id":"MDU6SXNzdWUzMDg4NDEwNjQ=","number":588,"title":"trouble with disableClick","user":{"login":"dant00ine","id":12077874,"node_id":"MDQ6VXNlcjEyMDc3ODc0","avatar_url":"https://avatars1.githubusercontent.com/u/12077874?v=4","gravatar_id":"","url":"https://api.github.com/users/dant00ine","html_url":"https://github.com/dant00ine","followers_url":"https://api.github.com/users/dant00ine/followers","following_url":"https://api.github.com/users/dant00ine/following{/other_user}","gists_url":"https://api.github.com/users/dant00ine/gists{/gist_id}","starred_url":"https://api.github.com/users/dant00ine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dant00ine/subscriptions","organizations_url":"https://api.github.com/users/dant00ine/orgs","repos_url":"https://api.github.com/users/dant00ine/repos","events_url":"https://api.github.com/users/dant00ine/events{/privacy}","received_events_url":"https://api.github.com/users/dant00ine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-27T06:45:24Z","updated_at":"2018-06-19T06:10:52Z","closed_at":null,"author_association":"NONE","body":"Anybody else having trouble getting disableClick to work?\r\n\r\nI have tested other boolean attributes such as disablePreview, and these are working for me. Using the same syntax, I am unable to get anything out of the `disableClick` attribute.\r\n\r\nI am expecting that when set to true, clicking on the upload area or image preview area should not open up the image upload dialogue.\r\n\r\nI want to disable the default click to upload and replace it with a button, here's the code I am using. Other than the disableClick attribute, everything is working as expected.\r\n\r\n```\r\n<Dropzone onDrop={this.onDrop} disableClick ref={(node) => {dropzoneRef = node}}>\r\n    <p> Drag photos or <span onClick={ () => {dropzoneRef.open()}} > Click Here </span> </p>\r\n</Dropzone>\r\n```\r\n\r\nBut clicking anywhere in the area, or in the image preview area, the browser upload dialogue will still open.\r\n\r\n\"react-dropzone\": \"^4.2.9\"\r\n\r\nAny idea on what I could be doing wrong? Is this indeed a bug? What information could I provide to be more helpful?\r\n"},"comment":{"url":"https://api.github.com/repos/react-dropzone/react-dropzone/issues/comments/398285405","html_url":"https://github.com/react-dropzone/react-dropzone/issues/588#issuecomment-398285405","issue_url":"https://api.github.com/repos/react-dropzone/react-dropzone/issues/588","id":398285405,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODI4NTQwNQ==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-06-19T06:10:52Z","updated_at":"2018-06-19T06:10:52Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity in the past 60 days. It will be closed if no further activity occurs. If the problem persists please comment here to bump your issue. Thank You - React Dropzone Maintaners\n"}}
{"actor":{"display_login":"stale"}}