MedicOneSystems / livewire-datatables

Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS
https://livewire-datatables.com/
MIT License
1.19k stars 258 forks source link

Incorrect behaviour of activeSelectFilter ? #464

Open Slobug opened 2 years ago

Slobug commented 2 years ago

Hi,

Thanks for this development, it's wonderful.

I have a problem with activeSelectFilter.

If I use it in class before methods with à value, it's ok. But if I use it in methods, the behavior is different.

it look like that if I use it in a method, it's not possible to unselect.

In laravel, I use "auth()->user()->attribute" and it's not possible out methods.

Someone can help me with an example ?

That I would like to do : filter my table with a value providing by "auth()->user()->attr" like a select, but that I can unselect to get the entire of my data.

Thanks very much for your help !


Laravel 8.xx Php 7.4 livewire 2.4 livewire-datatable 0.7.0

S.