[PR #2148] [MERGED] fix(frontend): prevent file upload overlay when dragging text from editor #9810

Closed
opened 2026-04-23 09:13:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2148
Author: @kolaente
Created: 1/24/2026
Status: Merged
Merged: 1/24/2026
Merged by: @kolaente

Base: mainHead: fix-drag-text-out-of-editor


📝 Commits (1)

  • 69075e4 fix(frontend): prevent file upload overlay when dragging text from editor

📊 Changes

1 file changed (+18 additions, -1 deletions)

View changed files

📝 frontend/src/components/tasks/partials/Attachments.vue (+18 -1)

📄 Description

Summary

  • Fixes the file upload overlay incorrectly appearing when dragging text from within the TipTap description editor to outside of it
  • Added a check for event.dataTransfer.types.includes('Files') to ensure the overlay only appears when actual files are being dragged

Test plan

  • Open a task detail view
  • Click "Edit" on the description to enable edit mode
  • Select some text in the description editor
  • Drag the text outside the editor area
  • Verify the "Drop files here to upload" overlay does NOT appear
  • Drag an actual file from your desktop into the task detail view
  • Verify the "Drop files here to upload" overlay DOES appear

Fixes #1663


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2148 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 1/24/2026 **Status:** ✅ Merged **Merged:** 1/24/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `fix-drag-text-out-of-editor` --- ### 📝 Commits (1) - [`69075e4`](https://github.com/go-vikunja/vikunja/commit/69075e4bdf5cb7759ae68cb7c29a19eb5e31ce58) fix(frontend): prevent file upload overlay when dragging text from editor ### 📊 Changes **1 file changed** (+18 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/tasks/partials/Attachments.vue` (+18 -1) </details> ### 📄 Description ## Summary - Fixes the file upload overlay incorrectly appearing when dragging text from within the TipTap description editor to outside of it - Added a check for `event.dataTransfer.types.includes('Files')` to ensure the overlay only appears when actual files are being dragged ## Test plan - [x] Open a task detail view - [x] Click "Edit" on the description to enable edit mode - [x] Select some text in the description editor - [x] Drag the text outside the editor area - [x] Verify the "Drop files here to upload" overlay does NOT appear - [x] Drag an actual file from your desktop into the task detail view - [x] Verify the "Drop files here to upload" overlay DOES appear Fixes #1663 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 09:13:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#9810