mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
StickyHeaders: check for filters before trying to set focus. Fixes #594
This commit is contained in:
parent
65f0130832
commit
298c2f10ad
@ -1370,8 +1370,8 @@ ts.addWidget({
|
||||
if ($stickyTable.hasClass(ts.css.stickyVis)) {
|
||||
// scroll to original table (not sticky clone)
|
||||
window.scrollTo(0, $table.position().top);
|
||||
// give same input/select focus
|
||||
if (column >= 0) {
|
||||
// give same input/select focus; check if c.$filters exists; fixes #594
|
||||
if (column >= 0 && c.$filters) {
|
||||
c.$filters.eq(column).find('a, select, input').filter(':visible').focus();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user