Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix: remove tabindex from clone header nodes

- Tabbing through a scrolling table the tabindex on the cloned header in
  the body part of hte table meant that the browser would focus on those
  elements. Fix is to remove the tab index from the clone nodes.
  • Loading branch information...
commit 079a1f2e1d88973810822e0bb03f650ba7dc81d9 1 parent e00037a
@DataTables authored
View
1  media/js/jquery.dataTables.js
@@ -3258,6 +3258,7 @@
o.nTable.insertBefore( nTheadSize, o.nTable.childNodes[0] );
anHeadToSize = o.nTHead.getElementsByTagName('tr');
anHeadSizers = nTheadSize.getElementsByTagName('tr');
+ $('th, td', nTheadSize).removeAttr('tabindex');
if ( o.nTFoot !== null )
{
View
1  media/src/core/core.scrolling.js
@@ -214,6 +214,7 @@ function _fnScrollDraw ( o )
o.nTable.insertBefore( nTheadSize, o.nTable.childNodes[0] );
anHeadToSize = o.nTHead.getElementsByTagName('tr');
anHeadSizers = nTheadSize.getElementsByTagName('tr');
+ $('th, td', nTheadSize).removeAttr('tabindex');
if ( o.nTFoot !== null )
{
Please sign in to comment.
Something went wrong with that request. Please try again.