Skip to main content

Search and Top Navigation

#8905 closed bug (notabug)

Opened December 13, 2012 09:59AM UTC

Closed December 19, 2012 06:23PM UTC

Accordion: setting active option doesn't trigger scrolling to the new panel

Reported by: dIsoVi Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.accordion Version: 1.9.2
Keywords: Cc:
Blocked by: Blocking:
Description

Expected behaviour:

When accordion is in scrollable container and active option is changed programmatically the new selected panel should be scrolled to (such behaviour was in versions below 1.9)

Actually happens:

No scroll.

Here is example

http://jsfiddle.net/4vvjX/1/

if you change version of jqueryUI to 1.9.* in this fiddle you'll see the difference.

Attachments (0)
Change History (2)

Changed December 13, 2012 04:55PM UTC by tj.vantoll comment:1

status: newopen
summary: setting active option doesn't trigger scrolling to the new panelAccordion: setting active option doesn't trigger scrolling to the new panel

Verified and minified a bit - http://jsfiddle.net/tj_vantoll/DPuNS/.

Changed December 19, 2012 06:23PM UTC by scottgonzalez comment:2

resolution: → notabug
status: openclosed

The old behavior occurred because we used to set focus on activation. However, this isn't something that should occur, especially not based on a scripted activation. If you want to move the user's focus, then you should do so explicitly.