Cannot drag a button from it's ::before pseudo element
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Tracking
()
People
(Reporter: alexreardon, Unassigned)
Details
Attachments
(1 file)
|
5.82 MB,
video/mp4
|
Details |
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:
- Add
draggable="true"to a button element (to make it draggable) - Add a visible
::beforepseudo element to the button - You cannot drag the button from the
::beforeelement (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
| Reporter | ||
Updated•1 year ago
|
| Reporter | ||
Comment 1•1 year ago
|
||
This seems to be related to: https://bugzilla.mozilla.org/show_bug.cgi?id=568313
Comment 2•1 year ago
|
||
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.
Comment 3•1 year ago
|
||
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)
Comment 4•1 year ago
|
||
Yeah, I think it is a duplicate of bug 568313.
Description
•