Skip to main content

Search and Top Navigation

#5664 closed bug (notabug)

Opened May 27, 2010 08:38PM UTC

Closed July 30, 2010 11:40AM UTC

Last modified October 11, 2012 09:15PM UTC

Using "trigger('mouseup')" to stop dragging returns "this.helper is null"

Reported by: Mustard Owned by:
Priority: minor Milestone:
Component: ui.core Version: 1.8.1
Keywords: Cc:
Blocked by: Blocking:
Description

If you try this code:

function mouseUp()
{
    if($('#tomove').offset().left > 400)
    {
        $('#tomove').trigger('mouseup');
    }
}

$(document).ready(
function()
{
    $('#tomove').draggable(
    {
        axis:   'x',
        drag: function(event, ui) 
        {
            mouseUp();
        }
    });
});

As soon as you reach the 400 px you will get an error, at least in FF 3.6 and IE8, like this one:

this.helper is null

Is this a bug?

Attachments (0)
Change History (2)

Changed July 30, 2010 11:40AM UTC by jzaefferer comment:1

resolution: → invalid
status: newclosed

Triggering a mouseup event without the necessary event properties causes an error. Don't see an issue there - please use the forum to get help on whatever you're actually trying to do.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:2

milestone: TBD

Milestone TBD deleted