Pagination and modal with tabs

I have a custom page where I display a table with an image. When I click on the image, a modal opens with tabs inside. In the list resource, I created:
public function setPage($page, $pageName = 'page')
{
parent::setPage($page, $pageName);
$this->dispatch('scroll-to-top');
}
public function setPage($page, $pageName = 'page')
{
parent::setPage($page, $pageName);
$this->dispatch('scroll-to-top');
}
The problem is that clicking on the tabs is interpreted as pagination, so the $this->dispatch('scroll-to-top'); is executed. How can I fix this?
1 Reply
Marco Mapelli
Marco Mapelli4w ago
The problem is that when I click on a tab, the pagination of the page is reset. Is it possible to prevent the pagination from resetting?