]> source.dussan.org Git - jquery-ui.git/commitdiff
accordion: call .blur() so ui-state-focus class gets removed from last-focused header...
authorRichard Worth <rdworth@gmail.com>
Mon, 2 Mar 2009 12:37:00 +0000 (12:37 +0000)
committerRichard Worth <rdworth@gmail.com>
Mon, 2 Mar 2009 12:37:00 +0000 (12:37 +0000)
ui/ui.accordion.js

index 50ed08e61364b1188f8237ea18c80580664f2bac..4059e9a96ecf662fed7fb2a4cd8b9bb5c4cbf8ab 100644 (file)
@@ -354,7 +354,7 @@ $.widget("ui.accordion", {
 
                }
 
-               toHide.prev().attr('aria-expanded','false').attr("tabIndex", "-1");
+               toHide.prev().attr('aria-expanded','false').attr("tabIndex", "-1").blur();
                toShow.prev().attr('aria-expanded','true').attr("tabIndex", "0").focus();
 
        },