Parent droppable takes precedence over dynamically created child droppable
|Reported by:||sslotsky||Owned by:|
If a container is droppable, then if a dynamically created element is placed within the container and made to be droppable, the parent container always takes precedence, so the drop event for the new droppable never fires.
To see this, open the attached html file in your browser and fix the reference to jquery-ui.
- Drag the 'Drag me!' text into the container. After reading the alert, an orange box will append to the container. The orange box should be droppable.
- Drag the 'Drag me!' text into the orange box. The same alert as you saw in step 1 will occur, and a new orange box will be appended. This indicates that the drop function for the container fired, but the drop function for the orange box did not.
Please note that the 'refreshPositions' option does not solve this problem.
Change History (15)
comment:8 Changed 4 years ago by Michael P. Jung
- Resolution set to fixed
- Status changed from new to closed