Power-Components / livewire-powergrid

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

The multiselect filter is displayed without a label, and selecting an item triggers an exception. #1377

Closed slavatriput closed 8 months ago

slavatriput commented 8 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.9

PowerGrid

5.3.5

Laravel

10.43.0

Livewire

3.4.4

Alpine JS

3.2

Theme

Tailwind 3.x with tailwind/forms

Describe the bug.

screenshot

The multiselect filter is displayed without a label, and selecting an item triggers an exception.

PowerComponents\LivewirePowerGrid\PowerGridComponent::multiSelectChanged(): Argument #2 ($label) must be of type string, null given, called in D:\OSPanel\domains\marketplace\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php on line 36

To Reproduce...

public function fields(): PowerGridFields
    {
        return PowerGrid::fields()
            ->add('id')   
            etc.

Extra information

<?php
 //...