Description field drag-and-drop behavior changes with "Upload Attachment" button presence #665

Open
opened 2025-11-01 21:01:25 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Plong-Wasin on GitHub (Oct 15, 2025).

Description

There is an inconsistent behavior in the description text field when dragging and dropping text depending on whether the "Upload Attachment" button is visible or not.

  • Expected behavior:
    Dragging and dropping text within the description field should consistently allow moving text regardless of the presence of the "Upload Attachment" button.

  • Actual behavior:

  • When the "Upload Attachment" button is not visible, dragging and dropping text behaves normally, allowing users to move text inside the description field.

  • When the "Upload Attachment" button appears (e.g., after clicking "Add Attachments"), dragging text into the description field changes to a "drop file here to upload" overlay, preventing users from moving text and instead prompting for file uploads.

Steps to reproduce:

  1. Open an item with a description field.
  2. Ensure the "Upload Attachment" button is not visible.
  3. Drag and drop text inside the description field — text moves as expected.
  4. Click "Add Attachments" to make the "Upload Attachment" button visible.
  5. Try dragging text inside the description field again — now it shows "drop file here to upload" and text cannot be moved.

This behavior can create confusion and hinder normal text editing when attachments are enabled. A consistent solution is needed to differentiate between dragging files and dragging text within the description field.

Vikunja Version

v1.0.0-rc2-75-5f1d6845

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

Image
Originally created by @Plong-Wasin on GitHub (Oct 15, 2025). ### Description There is an inconsistent behavior in the description text field when dragging and dropping text depending on whether the "Upload Attachment" button is visible or not. - **Expected behavior:** Dragging and dropping text within the description field should consistently allow moving text regardless of the presence of the "Upload Attachment" button. - **Actual behavior:** - When the "Upload Attachment" button is not visible, dragging and dropping text behaves normally, allowing users to move text inside the description field. - When the "Upload Attachment" button appears (e.g., after clicking "Add Attachments"), dragging text into the description field changes to a "drop file here to upload" overlay, preventing users from moving text and instead prompting for file uploads. Steps to reproduce: 1. Open an item with a description field. 2. Ensure the "Upload Attachment" button is not visible. 3. Drag and drop text inside the description field — text moves as expected. 4. Click "Add Attachments" to make the "Upload Attachment" button visible. 5. Try dragging text inside the description field again — now it shows "drop file here to upload" and text cannot be moved. This behavior can create confusion and hinder normal text editing when attachments are enabled. A consistent solution is needed to differentiate between dragging files and dragging text within the description field. ### Vikunja Version v1.0.0-rc2-75-5f1d6845 ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? Yes ### Screenshots <img width="968" height="749" alt="Image" src="https://github.com/user-attachments/assets/de2a2d6b-a59f-4cdb-82c0-204658c23fdb" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#665