Skip to main content

Search and Top Navigation

#9394 closed bug (worksforme)

Opened June 22, 2013 10:03AM UTC

Closed June 25, 2013 04:29PM UTC

Page jump to the top after changed programmatically via the value method.

Reported by: josephys Owned by: josephys
Priority: minor Milestone: none
Component: ui.slider Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:
Description

Hi,

Chromium: v27.0.1453.93

OS: Linux Fedora 19

Jquery: 2.0.2

Jqueryui: 1.10.3

I searched over the internet and found no answer to this bug. After changed programmatically the value using

$( ".selector" ).slider( "value", 55 );

value method, the page jumps to the top. I tried to fix it using the ''change event'' applying:

$( ".selector" ).slider({

change:

function( event, ui ) {

event.preventDefault();

event.stopPropagation();

}

});

The workaround was using the "value option" instead of "value method"

$( ".selector" ).slider( "option", "value", 55 );

Thanks,

Attachments (0)
Change History (3)

Changed June 22, 2013 03:15PM UTC by tj.vantoll comment:1

owner: → josephys
status: newpending

Hi josephys,

Thanks for taking the time to contribute to the jQuery UI project. I'm not seeing the issue you're describing: http://jsfiddle.net/tj_vantoll/fwStx/.

Could you please alter my test case to show the issue you're experiencing?

Thanks.

Changed June 25, 2013 04:22PM UTC by josephys comment:2

status: pendingnew

Hi again,

Bubbling comes with the option animate.

Test case is here: http://jsfiddle.net/fwStx/1/

Changed June 25, 2013 04:29PM UTC by scottgonzalez comment:3

resolution: → worksforme
status: newclosed

I'm not seeing this happen. I see a very small jump up from the bottom because you're hiding an element right before the animation, but the page is definitely not jumping to the top for me.

Since we can't reproduce this, there's nothing we can do. I'd suggest asking for help on the forums or Stack Overflow to see if you can find anyone else that can reproduce this and help you track down the problem.