Closed Bug 1478562 Opened 8 years ago Closed 5 years ago

Dragleave fires when dragged over a text inside droppable div

Categories

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

61 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1709832

People

(Reporter: ufo.faflik, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 Steps to reproduce: When you have div with droppable attribute and that div has text inside, if you drag another element over div it correctly fires dragenter event but if you drag over the text inside that div it fires dragleave - even if the text is inside droppable div. if you put span inside with pointer-events: none; everything is fine Here's the jsfiddle https://jsfiddle.net/xpvt214o/487536/ and browsing old issues found this file from other ticket https://bug812807.bmoattachments.org/attachment.cgi?id=682780 same result, take one of those buttons and drag over "drop here" text, you'll see background blinking Firefox 61.0.1 Mac/Windows Actual results: droppable div fires dragleave event if that div contains a text and you drag over the text inside that div Expected results: dragleave event should not be fired when dragging over text inside droppable div
Component: Untriaged → Event Handling
Product: Firefox → Core
Neil, any idea what might be going on here?
Component: Event Handling → Drag and Drop
Flags: needinfo?(enndeakin)
Is the issue here that the event shouldn't target text nodes and only elements? That's probably fixable in EventStateManager::GenerateDragDropEnterExit.
Flags: needinfo?(enndeakin)
Priority: -- → P5

Will fix this in:

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.