Power-Components / livewire-powergrid

⚡ PowerGrid generates modern, powerful and easy-to-customize data tables using Laravel Livewire.

Home Page:https://livewire-powergrid.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] `hideToggleable` Action rule is not working

dansysanalyst opened this issue · comments

commented

Have you searched through other issues to see if your problem is already reported or has been fixed?

Yes, I did not find it.

Did you read the documentation?

Yes, I did not find it.

Have you tried to publish the views?

Yes - I didn't work.

Is there an error in the console?

No

PHP Version

No response

PowerGrid

No response

Laravel

No response

Livewire

No response

Alpine JS

No response

Theme

Tailwind 3.x

Describe the bug.

The Action Rule to hide the Toggleable is not working as expected.

CleanShot 2024-05-10 at 01 20 24@2x
a

 public function actionRules($row): array
    {
            Rule::rows()
                ->when(fn ($dish) => $dish->in_stock == false)
                ->hideToggleable(),
        ];
    }

To Reproduce...

First click on "FOO" then....

Extra information

No response

commented

I am working on a PR. Should send in the next few days.