Skip to content

Commit

Permalink
fix: pagination throws error (resolves #2045) (#2046)
Browse files Browse the repository at this point in the history
fix: pagination throws error
  • Loading branch information
jobara authored Dec 4, 2023
1 parent 59004ee commit 4484241
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions resources/views/vendor/livewire/tailwind-custom.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<div>
@if ($paginator->hasPages())
@php(isset($this->numberOfPaginatorsRendered[$paginator->getPageName()]) ? $this->numberOfPaginatorsRendered[$paginator->getPageName()]++ : ($this->numberOfPaginatorsRendered[$paginator->getPageName()] = 1))

<nav class="flex flex-col items-center justify-between" role="navigation" aria-label="Pagination Navigation">
<div class="w-full text-center" role="alert" aria-live="polite">
<p>
Expand Down Expand Up @@ -67,8 +65,7 @@
{{-- Array Of Links --}}
@if (is_array($element))
@foreach ($element as $page => $url)
<li
wire:key="paginator-{{ $paginator->getPageName() }}-{{ $this->numberOfPaginatorsRendered[$paginator->getPageName()] }}-page{{ $page }}">
<li wire:key="paginator-{{ $paginator->getPageName() }}-page{{ $page }}">
<a href="{{ route(RalphJSmit\Livewire\Urls\Facades\Url::currentRoute(), ['page' => $page]) }}"
wire:click.prevent="gotoPage({{ $page }}, '{{ $paginator->getPageName() }}')"
@if ($page == $paginator->currentPage()) aria-current="page" @endif>
Expand Down

0 comments on commit 4484241

Please sign in to comment.