Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
codedge committed Jan 30, 2020
1 parent 0b90711 commit f80a42e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Components/Datatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,12 @@ public function paginationView()
{
return 'livewire-companion::pagination-links';
}

public function updating($name, $value)
{
// Reset page to 1 when doing a search
if($name === 'searchTerm') {
$this->paginator['page'] = 1;
}
}
}

0 comments on commit f80a42e

Please sign in to comment.