Skip to content

Commit

Permalink
fix: show all results of search
Browse files Browse the repository at this point in the history
  • Loading branch information
SH0PK33P3R committed Oct 6, 2020
1 parent 2eec74e commit e1e8c6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/dataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@
const offset = 500;
const tableContainerElement = tableContainerRef.current;
if (stickyHeader) {
if (searchTerm) {
fetchNextSet();
}
const parent = tableContainerElement.parentNode;
if (tableContainerElement.scrollHeight <= parent.clientHeight) {
fetchNextSet();
Expand Down

0 comments on commit e1e8c6f

Please sign in to comment.