1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-01 13:24:10 +01:00

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.
This commit is contained in:
Allan Jardine 2013-03-01 17:30:40 +00:00
parent e00037a1af
commit 079a1f2e1d
2 changed files with 2 additions and 0 deletions

View File

@ -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 File

@ -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 )
{