Skip to content

Destroying droppedPanel produce errors #1

@aebsubis

Description

@aebsubis

Uncaught TypeError: Cannot read property 'dom' of undefined

https://github.com/m4dc4p/draggable/blob/v07182011/draggable.js#L73

Destroying the dragged element before finishing the "avterValidDrop" method was causing problems since the drop event did not finish properly. I've managed to solve it by delaying the destroy action:

setTimeout(function() {droppedPanel.destroy(); }, 0);

PD: Thanks for that excellent example!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions