Closed Bug 1967645 Opened 1 year ago Closed 1 year ago

Cannot drag a button from it's ::before pseudo element

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

Firefox 138
defect

Tracking

()

RESOLVED DUPLICATE of bug 568313

People

(Reporter: alexreardon, Unassigned)

Details

Attachments

(1 file)

Attached video bug-reproduction.mp4

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36

Steps to reproduce:

  1. Add draggable="true" to a button element (to make it draggable)
  2. Add a visible ::before pseudo element to the button
  3. You cannot drag the button from the ::before element (and no "dragstart" event is fired)

Standalone reproduction case: https://pvyscd.csb.app/
Reproduction case with code: https://codesandbox.io/p/sandbox/pvyscd

Actual results:

No drag is started when trying to drag from the ::before

Expected results:

The draggable button should have been dragged when dragging from it's ::before

Summary: Cannot drag from ::before pseudo element on a button → Cannot drag a button from it's ::before pseudo element

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Copy & Paste and Drag & Drop' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Copy & Paste and Drag & Drop
Product: Firefox → Core

Edgar, would you agree that it's a dupe of bug 568313? (I'm asking because you've dupe a bunch of other bugs to that)

Flags: needinfo?(echen)

Yeah, I think it is a duplicate of bug 568313.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 568313
Flags: needinfo?(echen)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: