Skip to content

Table row action group visibility bug when conditionally visible and opening a modal #16282

@ryanmortier

Description

@ryanmortier

Package

filament/filament

Package Version

v3.3.14

Laravel Version

v12.14.1

Livewire Version

v3.6.3

PHP Version

PHP 8.4

Problem description

When using a Filament\Tables\Actions\ActionGroup on a table row that is conditionally visible via the visible() or authorize() methods and a modal is opened when clicking the action trigger button, all rows will show the ActionGroup trigger button regardless of the conditional visibility.

Please see the following gif. Observe the action group trigger button showing behind the modal on every row.

Image

Expected behavior

Would expect the conditional visibility to be respected even with the modal opening.

Steps to reproduce

  1. Clone reproduction repo
  2. Migrate and seed database
  3. Navigate to /admin
  4. Login with [email protected] // password
  5. Navigate to the Users resource
  6. Only one row should have the ActionGroup trigger button visible
  7. Click the Test action inside the group and observe all of the table rows now have an action group trigger button visible

Reproduction repository (issue will be closed if this is not valid)

https://github.com/ryanmortier/filament-table-row-action-authorization

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions