Hello,
I seen other posts about how to perform a go to top in pagination but I’m unable to achieve it.
In a component, where I render a list and his pagination links. Everything works well but I can’t fire the event to make a scrollTop.
In a list component, I have the foreach followed by {{ $items->links(‘livewire.search-pagination’) }}
Then in pagination view, I call next page by wire:click=“gotoPage({{ $page }})”
I tried emit, overriede goToPage function, … but I didn’t arrive to do this simple thing.
Could you help me ?
Thanks !