sortable() resets the sorting on 3rd click
Hello,
I am facing this issue with sortable() columns on my tables.
It sorts perfectly when I click on it once, then it toggles the direction on another click and then on 3rd click it just resets the sorting and then I have to click on it again to sort.
Please watch the attached video for reference.
Please let me know how do I fix this?
Thank you so much.
Solution:Jump to solution
Then on 3rd click it just resets the sortingIt's the expected behaviour. If you want to change it, I think you can overwrite the
sortTable()
method on the ListPage...7 Replies
I dont think this is an issue, the third click is to reset the sorting for this column if the user want to sort by other column, its in the demo too
https://demo.filamentphp.com/shop/products/products
@Lara Zeus I understand, but my client only wants to use this column for sorting and he wants the sorting to be either desc or asc but not reset.
Solution
Then on 3rd click it just resets the sortingIt's the expected behaviour. If you want to change it, I think you can overwrite the
sortTable()
method on the ListPage@Dennis Koch thank you so much.
@Dennis Koch it worked, thank you so much.
@Dennis Koch is it possible to change it for all ListPages together instead of doing it for each ListPage please?
Use a BaseClass and extend it or add a trait to all of them.
ok thank you so much 🙂