Repository navigation
Multisort not working when navigate #2022
fausto1389
started this conversation in
BUG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Livewire PowerGrid version
v6.6.4
Livewire version
v3.6.0
Laravel version
v12.35.0
Which PHP version are you using?
PHP 8.3
Which Theme are you using?
Tailwind
Have you published the resource files and customized them? (php artisan vendor:publish)
Yes
What is the problem?
When I navigate (using Livewire navigation) from one page to another, my table disables multi sorting but if I reload the page, it starts to work.
I have the multiSort var inside my component class and this works only when I refresh the browser.
This is how it works when I navigate:

And this is how it works when I reload the browser:

Code snippets
public bool $multiSort = true;
public function setUp(): array
{
return [
PowerGrid::header()
->showToggleColumns()
->withoutLoading(),
PowerGrid::footer()
->showPerPage(perPage: 10, perPageValues: [])
->showRecordCount(),
PowerGrid::responsive(),
];
}
How do you expect it to work?
The table should work whether you reload the page or navigate with Livewire.
Please confirm (incomplete submissions will not be addressed)
All reactions