Opened 8 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: |
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.
Change History (2)
comment:1 Changed 8 years ago by
Status: | new → open |
---|---|
Summary: | Droppable: drop triggered for hidden droppables when dropping on 0,0 → Droppable: drop triggered for hidden droppables |
comment:2 Changed 8 years ago by
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.
Note: See
TracTickets for help on using
tickets.
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/.