From: Scott González Date: Tue, 13 Jul 2010 12:51:37 +0000 (-0400) Subject: Accordion: Prevent the navigation filter from finding multiple elements. Fixes #4889... X-Git-Tag: 1.8.3~57 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2bf91e8e28e3936ed56def5648dda479aefa9ad2;p=jquery-ui.git Accordion: Prevent the navigation filter from finding multiple elements. Fixes #4889 - Navigation parameter can open multiple sections. --- diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 656094681..07fad3130 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -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 ) {