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:
parent
e00037a1af
commit
079a1f2e1d
1
media/js/jquery.dataTables.js
vendored
1
media/js/jquery.dataTables.js
vendored
@ -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 )
|
||||
{
|
||||
|
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user