Skip to content
Permalink
Browse files

Accordion: Use event.preventDefault() instead of return false when ha…

…ndling keydown.
  • Loading branch information...
scottgonzalez committed Jan 13, 2011
1 parent b22c69b commit 4e7aa53e3e4f56253045bc9db0523da2753e7095
Showing with 2 additions and 6 deletions.
  1. +2 −6 ui/jquery.ui.accordion.js
@@ -87,9 +87,7 @@ $.widget( "ui.accordion", {

self.headers
.attr( "role", "tab" )
.bind( "keydown.accordion", function( event ) {
return self._keydown( event );
})
.bind( "keydown.accordion", $.proxy( self, "_keydown" ) )
.next()
.attr( "role", "tabpanel" );

@@ -221,10 +219,8 @@ $.widget( "ui.accordion", {
$( event.target ).attr( "tabIndex", -1 );
$( toFocus ).attr( "tabIndex", 0 );
toFocus.focus();
return false;
event.preventDefault();
}

return true;
},

resize: function() {

0 comments on commit 4e7aa53

Please sign in to comment.
You can’t perform that action at this time.