Skip to content

Commit 49446ea

Browse files
authored
chore: revert media library anchor_string (#3642)
1 parent a2730f7 commit 49446ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/components/avo/media_library/list_component.html.erb

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@
5151
<div class="flex-2 w-full sm:flex sm:items-center sm:justify-between space-y-2 sm:space-y-0 text-center sm:text-left pagy-gem-version-<%= helpers.pagy_major_version %> ">
5252
<div class="text-sm text-slate-600 mr-4"><%== helpers.pagy_info @pagy %></div>
5353
<% if @pagy.pages > 1 %>
54-
<%== helpers.pagy_nav(@pagy, anchor_string: "data-turbo-frame=\"#{@turbo_frame}\"") %>
54+
<%# xanchor_string is not valid key word argument and it breaks when require "pagy/extras/calendar" %>
55+
<%# https://github.com/ddnexus/pagy/blob/d70e443872a5b18da4e482454b3c8b4a1c86cb6b/gem/lib/pagy/extras/calendar.rb#L47 %>
56+
<%#== helpers.pagy_nav(@pagy, xanchor_string: "data-turbo-frame=\"#{@turbo_frame}\"") %>
57+
<%== helpers.pagy_nav(@pagy) %>
5558
<% end %>
5659
</div>
5760
</div>

0 commit comments

Comments
 (0)