rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.78k stars 337 forks source link

filters stop working after sorting the table #606

Closed aldozumaran closed 2 years ago

aldozumaran commented 2 years ago

https://user-images.githubusercontent.com/3183704/147890720-8c295635-776c-432e-8ff8-d5cc4c526657.mp4

i added a toggle button to change the row status image image

aldozumaran commented 2 years ago

at some point the html is regenerated and the javascript (alpinejs ) part no longer works

https://user-images.githubusercontent.com/3183704/147978556-ae1616eb-65f8-4bf7-8a52-cff3568cb187.mp4

aldozumaran commented 2 years ago

in the example page the filters continue to work after the component refresh, in my project they don't

Tailwind example: https://tables.laravel-boilerplate.com/tailwind

My project "rappasoft/laravel-livewire-tables": "^1.21", "livewire/livewire": "^2.5", "laravel/framework": "^8.75", "laravel/jetstream": "^2.5",

UsersTable.zip

@rappasoft what's the problem? ps. sorry for my english

aldozumaran commented 2 years ago

basic example, after several sorts, livewire refresh component and bulks/filters not open, click event still works, console.log(open) show open value "true/false" image

romeogregory commented 2 years ago

I got the same problem.

bureauvk commented 2 years ago

Same here!

vildanbina commented 2 years ago

+1

vildanbina commented 2 years ago

i fix that and I requested a pull request: https://github.com/rappasoft/laravel-livewire-tables/pull/643