Opened 9 years ago

Closed 9 years ago

#10622 closed bug (notabug)

nested draggable triggers outer draggable events

Reported by: miniME Owned by:
Priority: minor Milestone: none
Component: ui.draggable Version: 1.11.1
Keywords: Cc:
Blocked by: Blocking:

Description

When there are nested droppable elements, any events (drag/dragstart/dragstop) on the inner element are also triggered on the outer droppable element.

Here is a reduced example: http://jsfiddle.net/ru9Lvfwe/

Change History (1)

comment:1 Changed 9 years ago by tj.vantoll

Resolution: notabug
Status: newclosed

That's because the event bubbles up the DOM. You can prevent the bubbling with a stopPropagation() call: http://jsfiddle.net/tj_vantoll/ru9Lvfwe/1/

Note: See TracTickets for help on using tickets.