Skip to content

Commit

Permalink
Stop turbo from interfering with links handled by our modal code
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer authored and jcoyne committed Jan 18, 2024
1 parent fddcb6b commit 2cf00e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/blacklight/facet_field_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="more_facets">
<%= link_to t("more_#{@facet_field.key}_html", scope: 'blacklight.search.facets', default: :more_html, field_name: @facet_field.label),
@facet_field.modal_path,
data: { blacklight_modal: 'trigger' } %>
data: { blacklight_modal: 'trigger', turbo: false } %>
</div>
<% end %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_modal.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div id="blacklight-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
<div id="blacklight-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" data-turbo="false">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
</div>
Expand Down

0 comments on commit 2cf00e8

Please sign in to comment.