diff --git a/src/QueryDataTable.php b/src/QueryDataTable.php index 6786d315..929654e4 100644 --- a/src/QueryDataTable.php +++ b/src/QueryDataTable.php @@ -158,7 +158,9 @@ public function keepSelectBindings() public function totalCount() { if ($this->skipTotalRecords) { - return true; + $this->isFilterApplied = true; + + return 1; } return $this->totalRecords ? $this->totalRecords : $this->count();