Skip to content

Commit 2bf91e8

Browse files
committed
Accordion: Prevent the navigation filter from finding multiple elements. Fixes #4889 - Navigation parameter can open multiple sections.
1 parent f560862 commit 2bf91e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.accordion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $.widget("ui.accordion", {
5353
.addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
5454

5555
if ( o.navigation ) {
56-
var current = this.element.find("a").filter(o.navigationFilter);
56+
var current = this.element.find("a").filter(o.navigationFilter).eq(0);
5757
if ( current.length ) {
5858
var header = current.closest(".ui-accordion-header");
5959
if ( header.length ) {

0 commit comments

Comments
 (0)