Skip to content

Added drag and drop in update panel for firefox#327

Open
23f2004548 wants to merge 2 commits into
imDarshanGK:mainfrom
23f2004548:fix/upload-panel-drag-and-drop
Open

Added drag and drop in update panel for firefox#327
23f2004548 wants to merge 2 commits into
imDarshanGK:mainfrom
23f2004548:fix/upload-panel-drag-and-drop

Conversation

@23f2004548

Copy link
Copy Markdown

PR title:

fix(upload-panel): set dropEffect during dragover for Firefox

FIXES #101

PR description:

Set e.dataTransfer.dropEffect = "copy" in frontend/src/components/UploadPanel.jsx onDragOver to fix drag-and-drop in Firefox. Test by dragging a file into the upload panel in Firefox.

Copilot AI review requested due to automatic review settings June 1, 2026 23:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the upload drop zone drag-over behavior so the browser indicates a “copy” operation when files are dragged onto the panel.

Changes:

  • Sets dataTransfer.dropEffect = "copy" during onDragOver to improve user feedback while dragging files.
Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread frontend/src/components/UploadPanel.jsx Outdated
@23f2004548 23f2004548 requested a review from Copilot June 2, 2026 09:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

Comment on lines +37 to +38
onDragEnter={e=>{e.dataTransfer.dropEffect = "copy";setDragging(true)}}
onDragOver={e=>e.preventDefault()}
Comment on lines +37 to 39
onDragEnter={e=>{e.dataTransfer.dropEffect = "copy";setDragging(true)}}
onDragOver={e=>e.preventDefault()}
onDragLeave={()=>setDragging(false)}
@imDarshanGK

Copy link
Copy Markdown
Owner

@23f2004548 add demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants