diff --git a/resources/views/components/frameworks/tailwind/filters/select.blade.php b/resources/views/components/frameworks/tailwind/filters/select.blade.php index f16a436b..de676f14 100644 --- a/resources/views/components/frameworks/tailwind/filters/select.blade.php +++ b/resources/views/components/frameworks/tailwind/filters/select.blade.php @@ -19,6 +19,7 @@ style="{{ data_get($column, 'headerStyle') }}" wire:input.debounce.500ms="filterSelect('{{ data_get($select, 'dataField') }}','{{ data_get($select, 'label') }}')" wire:model.debounce.500ms="filters.select.{{ data_get($select, 'dataField') }}"> + @foreach(data_get($select, 'data_source') as $relation) @php $key = isset($relation['id']) ? 'id' : 'value'; diff --git a/tests/Feature/FilterSelectTest.php b/tests/Feature/FilterSelectTest.php index 0d7ec7ca..ade6385a 100644 --- a/tests/Feature/FilterSelectTest.php +++ b/tests/Feature/FilterSelectTest.php @@ -8,6 +8,7 @@ ->assertSeeHtmlInOrder([ 'wire:input.debounce.500ms="filterSelect(\'category_id\',\'Categoria\')"', 'wire:model.debounce.500ms="filters.select.category_id"', + '', ]); })->with('themes');