Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82257

tabindex declared on hidden header cells

$
0
0
On a sortable and scrollable table, the header is duplicated (but hidden) within the scrollBody part, with tabindex attribute set to 0 (tabindex=0).
As a result, when using only a keyboard the focus seems to be "lost" after the last cell of the visible header, since the hidden header cells get the focus.

workaround : set tabindex to -1 on hidden header cells

$('.dataTables_scrollBody thead th').each(function () { $(this).attr('tabindex', -1); });

Viewing all articles
Browse latest Browse all 82257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>