mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Stop stickyheader scrolling to top after sort
This commit is contained in:
parent
5d0a109efb
commit
8cab08da37
@ -571,7 +571,7 @@ ts.filter = {
|
||||
} else {
|
||||
// send false argument to force a new search; otherwise if the filter hasn't changed, it will return
|
||||
filter = event.type === 'search' ? filter : event.type === 'updateComplete' ? c.$table.data('lastSearch') : '';
|
||||
if (/(update|add)/.test(event.type)) {
|
||||
if (/(update|add)/.test(event.type) && event.type !== "updateComplete") {
|
||||
// force a new search since content has changed
|
||||
c.lastCombinedFilter = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user