You don't, there is no such thing.
Make sure that you are using Livewire's pagination.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi all.
New to livewire. Currently implementing the classic loading of a table data dynamically with pagination and all is going well except that when I click the page numbers, the page jumps up to the top before dynamically reloading the table.
In the old days when I had to write JS, I would add the preventDefault() method to the top of the handler code to prevent that from happening. How would I go about doing that with livewire and keeping the page from jumping to the top?
TIA, Rui
By default, Livewire's paginator scrolls to the top of the page after every page change. You can disable this behavior by passing
falseto thescrollToparameter of thelinks()method like so:
{{ $posts->links(data: ['scrollTo' => false]) }}
https://livewire.laravel.com/docs/pagination#customizing-scroll-behavior
Please or to participate in this conversation.