Skip to content

Commit

Permalink
Merge pull request #456 from Power-Components/bugfix/makeInputSelect
Browse files Browse the repository at this point in the history
fix missing 'all' on select
  • Loading branch information
luanfreitasdev authored May 30, 2022
2 parents 04717db + 14f9873 commit c7cb3ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}">
<option value="">{{ trans('livewire-powergrid::datatable.select.all') }}</option>
@foreach(data_get($select, 'data_source') as $relation)
@php
$key = isset($relation['id']) ? 'id' : 'value';
Expand Down
1 change: 1 addition & 0 deletions tests/Feature/FilterSelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
->assertSeeHtmlInOrder([
'wire:input.debounce.500ms="filterSelect(\'category_id\',\'Categoria\')"',
'wire:model.debounce.500ms="filters.select.category_id"',
'<option value="">All</option>',
]);
})->with('themes');

Expand Down

0 comments on commit c7cb3ee

Please sign in to comment.