{"action":"created","issue":{"url":"https://api.github.com/repos/react-dropzone/react-dropzone/issues/255","repository_url":"https://api.github.com/repos/react-dropzone/react-dropzone","labels_url":"https://api.github.com/repos/react-dropzone/react-dropzone/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/react-dropzone/react-dropzone/issues/255/comments","events_url":"https://api.github.com/repos/react-dropzone/react-dropzone/issues/255/events","html_url":"https://github.com/react-dropzone/react-dropzone/issues/255","id":183080422,"number":255,"title":"Suggestion: Option to prevent dragging and dropping elements on the page onto the dropzone","user":{"login":"akinnee-gl","id":14181715,"avatar_url":"https://avatars2.githubusercontent.com/u/14181715?v=4","gravatar_id":"","url":"https://api.github.com/users/akinnee-gl","html_url":"https://github.com/akinnee-gl","followers_url":"https://api.github.com/users/akinnee-gl/followers","following_url":"https://api.github.com/users/akinnee-gl/following{/other_user}","gists_url":"https://api.github.com/users/akinnee-gl/gists{/gist_id}","starred_url":"https://api.github.com/users/akinnee-gl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akinnee-gl/subscriptions","organizations_url":"https://api.github.com/users/akinnee-gl/orgs","repos_url":"https://api.github.com/users/akinnee-gl/repos","events_url":"https://api.github.com/users/akinnee-gl/events{/privacy}","received_events_url":"https://api.github.com/users/akinnee-gl/received_events","type":"User","site_admin":false},"labels":[{"id":132970201,"url":"https://api.github.com/repos/react-dropzone/react-dropzone/labels/bug","name":"bug","color":"fc2929","default":true},{"id":685341043,"url":"https://api.github.com/repos/react-dropzone/react-dropzone/labels/stale","name":"stale","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2016-10-14T15:30:21Z","updated_at":"2018-03-20T19:02:40Z","closed_at":"2018-03-19T00:45:24Z","author_association":"NONE","body":"In the meantime, here is my solution for doing this:\n\n```\nonDragEnter={function( event ) {\n    const dt = event.dataTransfer;\n    if ( !(\n        dt.types &&\n        ( dt.types.indexOf ? dt.types.indexOf( \"Files\" ) !== -1 : dt.types.contains( \"Files\" ) )\n    ) ) {\n        this.setState( { isDragActive: false } );\n    }\n}}\n```\n\n```\nonDrop={files => {\n    if ( files.length === 0 ) {\n        return;\n    }\n\n    // handle files dropped here\n}}\n```\n"},"comment":{"url":"https://api.github.com/repos/react-dropzone/react-dropzone/issues/comments/374718698","html_url":"https://github.com/react-dropzone/react-dropzone/issues/255#issuecomment-374718698","issue_url":"https://api.github.com/repos/react-dropzone/react-dropzone/issues/255","id":374718698,"user":{"login":"ashok-sc","id":32855087,"avatar_url":"https://avatars3.githubusercontent.com/u/32855087?v=4","gravatar_id":"","url":"https://api.github.com/users/ashok-sc","html_url":"https://github.com/ashok-sc","followers_url":"https://api.github.com/users/ashok-sc/followers","following_url":"https://api.github.com/users/ashok-sc/following{/other_user}","gists_url":"https://api.github.com/users/ashok-sc/gists{/gist_id}","starred_url":"https://api.github.com/users/ashok-sc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashok-sc/subscriptions","organizations_url":"https://api.github.com/users/ashok-sc/orgs","repos_url":"https://api.github.com/users/ashok-sc/repos","events_url":"https://api.github.com/users/ashok-sc/events{/privacy}","received_events_url":"https://api.github.com/users/ashok-sc/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T19:02:40Z","updated_at":"2018-03-20T19:02:40Z","author_association":"NONE","body":"So is the conclusion that there's no easy way to disable Drag 'n drop on the Dropzone component? I really need this for my use case.."}}
{"actor":{"display_login":"ashok-sc"}}