Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit af2baf2

Browse files
authored
Merge pull request #730 from mennowame/fix-individual-filtering-with-scrollX
Fix individual filtering in combination with scrollX
2 parents 361bc60 + 1fa4743 commit af2baf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Resources/views/datatable/search.js.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ var search = $.fn.dataTable.util.throttle(
3737
options.searchDelay
3838
);
3939

40-
$(selector).find("tr input.sg-datatables-individual-filtering").on("keyup change", search);
40+
$(oTable.table().container()).find("tr input.sg-datatables-individual-filtering").on("keyup change", search);
4141

42-
$(selector).find("tr select.sg-datatables-individual-filtering").on("keyup change", function(event) {
42+
$(oTable.table().container()).find("tr select.sg-datatables-individual-filtering").on("keyup change", function(event) {
4343
var searchValue = $(this).val();
4444
searchValue = searchValue ? searchValue.toString() : '';
4545
oTable

0 commit comments

Comments
 (0)