felixrieseberg / React-Dropzone-Component

:camera: ReactJS Dropzone for File Uploads (using Dropzone.js)
MIT License
1k stars 153 forks source link

Issue with disabling drag and drop functionality #237

Open chemseddine201 opened 11 months ago

chemseddine201 commented 11 months ago

I am currently facing an issue with disabling the drag and drop functionality in the Dropzone feature. I attempted to use the "clickable" option within the "djsConfig" to disable the click event, which worked perfectly. However, the problem arises when I use the "clickable" option it allows me to drag and drop files into the dropzone, which is something I want to prevent.

I explored potential solutions, such as using the "nodrag" option mentioned in the React Dropzone package. Unfortunately, this option is not supported by the current package I am using "react-dropzone-component ^3.2.0",. Additionally, I tried using a drop handler function to prevent the drag and drop action, but it did not yield the desired outcome.

Could you kindly suggest any alternative methods or options to completely disable the drag and drop event in the Dropzone feature? I greatly appreciate any assistance you can provide.