Skip to content

Commit cfcaa0e

Browse files
Reset Pagination
When we are on a different page from the first one, and we carry out a search or we apply a filter, the value of the page is not set to one and it shows us the message that we do not have results when we do, but in page one.
1 parent fe87597 commit cfcaa0e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Views/TableView.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,18 @@ public function closeConfirmationMessage()
180180
$this->confirmationMessage = null;
181181
$this->actionToBeConfirmed = null;
182182
}
183+
184+
/**
185+
* Reset pagination
186+
*/
187+
188+
public function updatingSearch()
189+
{
190+
$this->resetPage();
191+
}
192+
193+
public function updatingFilters()
194+
{
195+
$this->resetPage();
196+
}
183197
}

0 commit comments

Comments
 (0)