felixrieseberg / felixrieseberg/React-Dropzone-Component

Issue with disabling drag and drop functionality

Open
#237 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
999
Forks
148
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the React-Dropzone-Component Dropzone configuration and how djsConfig, clickable, and the drop handler are wired to drag-and-drop events. Reproduce the issue with clickable disabled, then verify whether a supported option or event-handling path can prevent file drops without disabling unrelated behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.