Skip to main content

Search and Top Navigation

#9820 open bug ()

Opened February 13, 2014 05:32PM UTC

Last modified April 23, 2014 03:31AM UTC

Droppable: drop triggered for hidden droppables

Reported by: paul.uithol Owned by:
Priority: minor Milestone: none
Component: ui.droppable Version: 1.10.4
Keywords: Cc:
Blocked by: Blocking:
Description

See http://jsfiddle.net/pauluithol/NVE85/.

Drag the grey rectangle to 0,0 and watch the console for the triggered drop event (on a hidden element that's positioned at 200,200). This happens when the parent of a "droppable" element has been hidden.

Attachments (0)
Change History (2)

Changed February 13, 2014 11:10PM UTC by tj.vantoll comment:1

status: newopen
summary: Droppable: drop triggered for hidden droppables when dropping on 0,0Droppable: drop triggered for hidden droppables

I deleted the duplicate #9821, no worries.

This is a bit odd and I can see why you might want to hide the parent of a droppable. I reduced the test case a little: http://jsfiddle.net/tj_vantoll/vM67X/.

Changed April 23, 2014 03:31AM UTC by vladjq comment:2

I got a similar bug when I had a dropable which was being cropped by it's parent with overflow: hidden, but the event was still being fired:

http://jsfiddle.net/UzbLS/1/

If you drop the yellow square outside of the red box, you still get an alert fired by the drop event.