Skip to content

Commit

Permalink
Accordion: Prevent the navigation filter from finding multiple elemen…
Browse files Browse the repository at this point in the history
…ts. Fixes #4889 - Navigation parameter can open multiple sections.
  • Loading branch information
scottgonzalez committed Jul 13, 2010
1 parent f560862 commit 2bf91e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.accordion.js
Expand Up @@ -53,7 +53,7 @@ $.widget("ui.accordion", {
.addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");

if ( o.navigation ) {
var current = this.element.find("a").filter(o.navigationFilter);
var current = this.element.find("a").filter(o.navigationFilter).eq(0);
if ( current.length ) {
var header = current.closest(".ui-accordion-header");
if ( header.length ) {
Expand Down

0 comments on commit 2bf91e8

Please sign in to comment.