Power-Components / livewire-powergrid

⚡ PowerGrid generates modern, powerful and easy-to-customize data tables using Laravel Livewire.
https://livewire-powergrid.com
MIT License
1.41k stars 205 forks source link

Cannot unset string offsets #1473

Closed bylioxdev closed 3 months ago

bylioxdev commented 3 months ago

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

8.1.27

PowerGrid

5.4.8

Laravel

10.43.0

Livewire

3.4.5

Alpine JS

No response

Theme

Tailwind 3.x with tailwind/forms

Describe the bug.

When I try to add to a table a filter, i get the following error: Cannot unset string offsets (View: /var/www/vhosts/BLUR/resources/views/vendor/livewire-powergrid/components/frameworks/tailwind/filters/input-text.blade.php)

To Reproduce...

Add an filter to an table:

public function filters(): array
    {
        return [
            Filter::inputText('id', 'id')
        ];
    }

Reload the page, and boom

Extra information

function filters(): array
    {
        return [
            Filter::inputText('id', 'id')
        ];
    }
bylioxdev commented 3 months ago

grafik

luanfreitasdev commented 3 months ago

Hello, @bylioxdev. Does this happen if you remove the last 'id' parameter?

return [
      Filter::inputText('id')
];
luanfreitasdev commented 3 months ago

No answers, so closing this