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?