Skip to content

Commit 78f1d25

Browse files
authored
Merge pull request #11 from ruangdeveloper/fix/bug
fix: data per page hidden
2 parents cebf730 + 2082dc2 commit 78f1d25

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

resources/views/bootstrap.blade.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class="form-check">
238238
<div>
239239
{{ $LTdata->links() }}
240240
</div>
241-
@if ($LTwithPagination && $LTdata->hasPages())
241+
@if ($LTwithPagination)
242242
<div>
243243
<select wire:model.live="LTperPage" class="form-select mb-3">
244244
@foreach ($LTperPageOptions as $LTperPageOption)
@@ -252,5 +252,4 @@ class="form-check">
252252
</div>
253253
</div>
254254
@endif
255-
@include('livewire-table::script')
256255
</div>

resources/views/custom.blade.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
<div>
234234
{{ $LTdata->links() }}
235235
</div>
236-
@if ($LTwithPagination && $LTdata->hasPages())
236+
@if ($LTwithPagination)
237237
<div>
238238
<select wire:model.live="LTperPage">
239239
@foreach ($LTperPageOptions as $LTperPageOption)
@@ -247,5 +247,4 @@
247247
</div>
248248
</div>
249249
@endif
250-
@include('livewire-table::script')
251250
</div>

resources/views/tailwind.blade.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ class="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue
247247
<div class="flex-1">
248248
{{ $LTdata->links() }}
249249
</div>
250-
@if ($LTwithPagination && $LTdata->hasPages())
250+
@if ($LTwithPagination)
251251
<div>
252-
<select wire:model.live="LTperPage"
252+
<select title="Items per page" wire:model.live="LTperPage"
253253
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-md focus:ring-blue-500 focus:border-blue-500 block w-full p-2">
254254
@foreach ($LTperPageOptions as $LTperPageOption)
255255
<option value="{{ $LTperPageOption }}">
@@ -262,5 +262,4 @@ class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-md focus:
262262
</div>
263263
</div>
264264
@endif
265-
@include('livewire-table::script')
266265
</div>

0 commit comments

Comments
 (0)