Closed mrgla55 closed 2 years ago
As a temporary workaround, please use different names for your bulk actions, until we get this fixed.
I'm thinking - should we prefix the class name before the id
? It would work, unless people have two of the same table on the same page, but this is probably quite unlikely.
Should be fixed in #928.
Package
filament/tables
Package Version
v2.4.56
Laravel Version
v8.74
Livewire Version
v2.8
PHP Version
PHP 8.0.0
Bug description
I have 2 separate filament tables showing within the 1 view. They both work in isolation, but the bulk action confirmation modals are conflicted. When performing a bulk action on one table, it looks like confirmation modal from both tables open. Then when the first modal is closed, the second modal is still appearing (with no content).
Looks like the issue is related to the non unique "id" of the modal being the same for both tables.
<x-tables::modal id="bulk-action" display-classes="block">
The event dispatch would fire for both
Steps to reproduce
Within a single view, I have 2 filament table components
Relevant log output
No response