Skip to content

Commit

Permalink
Merge pull request #402 from woylie/fix/range-warning
Browse files Browse the repository at this point in the history
fix: range warning
  • Loading branch information
woylie authored Jan 31, 2025
2 parents a64fdd2 + 41baa23 commit be7a3d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/flop_phoenix.ex
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ defmodule Flop.Phoenix do
{@opts[:next_link_content]}
</.pagination_link>
<.page_links
:if={@opts[:page_links] != :hide}
event={@event}
meta={@meta}
on_paginate={@on_paginate}
Expand Down Expand Up @@ -507,7 +508,7 @@ defmodule Flop.Phoenix do
assigns = assign(assigns, first: first, last: last, range: range)

~H"""
<ul :if={@opts[:page_links] != :hide} {@opts[:pagination_list_attrs]}>
<ul {@opts[:pagination_list_attrs]}>
<li :if={@first > 1} {@opts[:pagination_list_item_attrs]}>
<.pagination_link
event={@event}
Expand Down

0 comments on commit be7a3d7

Please sign in to comment.