New issue
Advanced search Search tips

Issue 854588 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Drag start doesn't work when hiding the target element

Reported by mulej.ma...@gmail.com, Jun 20 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36

Steps to reproduce the problem:
Make an element draggable and hide it in it's ondragstart handler(display=none).

What is the expected behavior?
Shouldn't trigger the ondragend handler.

What went wrong?
It will immediately triggers the ondragend handler.

Did this work before? N/A 

Chrome version: 67.0.3396.87  Channel: stable
OS Version: 10.0
Flash Version:
 
Labels: Needs-Triage-M67

Comment 2 by bokan@chromium.org, Jun 20 2018

Components: -Blink Blink>DataTransfer

Comment 3 by dcheng@chromium.org, Jun 20 2018

Status: Available (was: Unconfirmed)
This is intentional behavior: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/page/drag_controller.cc?rcl=676b5fae19bd233e4cce1479d631e421fec9e7b1&l=1173

The code fix is simple, if we decide we want to change this.

(From my perspective, I don't see a huge problem with allowing this; the element that was originally hit-tested should be the one dragged, even if dragstart does some weird layout stuff)

Sign in to add a comment