Skip to content

Commit 3d41457

Browse files
authored
fix for boostrap 5 theme
1 parent e6069cd commit 3d41457

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/views/components/tools/filters/select.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class="block w-full border-gray-300 rounded-md shadow-sm transition duration-150
2020
wire:model.stop="{{ $component->getTableName() }}.filters.{{ $filter->getKey() }}"
2121
wire:key="{{ $component->getTableName() }}-filter-{{ $filter->getKey() }}"
2222
id="{{ $component->getTableName() }}-filter-{{ $filter->getKey() }}"
23-
class="form-control"
23+
class="{{ $theme === 'bootstrap-4' ? 'form-control' : 'form-select' }}"
2424
>
2525
@foreach($filter->getOptions() as $key => $value)
2626
<option value="{{ $key }}">{{ $value }}</option>

resources/views/components/tools/toolbar.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ class="px-2 {{ $loop->last ? 'mb-0' : 'mb-1' }}"
829829
<select
830830
wire:model="perPage"
831831
id="perPage"
832-
class="form-control"
832+
class="form-select"
833833
>
834834
@foreach ($component->getPerPageAccepted() as $item)
835835
<option value="{{ $item }}" wire:key="per-page-{{ $item }}-{{ $component->getTableName() }}">{{ $item === -1 ? __('All') : $item }}</option>

0 commit comments

Comments
 (0)