Sortable is not working on Relation Manager class:
I'm facing a weird bug that sortable is not working on the relationship manager class. I have added the code below:
I'm using default search as well but I even tried removing that but still, it was not working. I need help to make it work.
Appreciate your help!
Solution:Jump to solution
Hi, thank you for your help it was the issue with the model, I was using latest() method in the relationship method, and after removing that it is working fine. Thanks again!
5 Replies
Can you share a short video where you try to sort the data?
Hi @Dennis Koch , thank you for your response: Please watch this:
https://www.loom.com/share/5e57796e3c0c4754800c7ddbccc25a52
Weird.
Is it just on Relation managers? Does it happen on other RMs, too?
Are you using the latest version?
Any console errors?
Exactly, It is not working for all of my relationship managers. Something is wrong as it is working fine for the main resource. I'm using the latest version. Also no error on the console. The livewire request returns effacted value as null once the sorting is clicked. Here is my table code which might give you more context also I have attached livewire request SS:
Solution
Hi, thank you for your help it was the issue with the model, I was using latest() method in the relationship method, and after removing that it is working fine. Thanks again!