Opened 9 years ago

Last modified 8 years ago

#9820 open bug

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:



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.

Change History (2)

comment:1 Changed 9 years ago by tj.vantoll

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:

comment:2 Changed 8 years ago by vladjq

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: If you drop the yellow square outside of the red box, you still get an alert fired by the drop event.

Note: See TracTickets for help on using tickets.