Opened 14 years ago

Closed 14 years ago

Last modified 10 years ago

#3511 closed bug (fixed)

Draggable: Incorrect helper checking

Reported by: vlesierse Owned by: paul
Priority: minor Milestone:
Component: ui.draggable Version: 1.6rc2
Keywords: draggable Cc:
Blocked by: Blocking:


For my solution I assign the helper as a function. This function modifies the draggable element by setting its position to absolute.

See my example:

    helper: function(e) { return $(this).css("position", "absolute"); }

This results in that after I dropped the element it will remove my element because of a check inside the clear function of the draggable extension. It checks if the option is not original but in my opinion it should check if the element not equels the helper. See my suggestion below:

_clear: function() {
    if(this.options.helper != 'original' && !this.cancelHelperRemoval) this.helper.remove();
    //if($.ui.ddmanager) $.ui.ddmanager.current = null;
    this.helper = null;
    this.cancelHelperRemoval = false;


_clear: function() {
    if(this.helper[0] != this.element[0] && !this.cancelHelperRemoval) this.helper.remove();
    //if($.ui.ddmanager) $.ui.ddmanager.current = null;
    this.helper = null;
    this.cancelHelperRemoval = false;

This will fix my problems because I would like to drag the original because it could contain object or embed tags for Flash and Silverlight. Only when it is set to relative I cannot move the element from one column to another.

Change History (2)

comment:1 Changed 14 years ago by paul

Resolution: fixed
Status: newclosed

Fixed in r855.

comment:2 Changed 10 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.