Skip to content

Commit

Permalink
fix has one attach data
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Sep 28, 2024
1 parent 3335928 commit 79bb17f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
icon: 'heroicons/outline/link',
color: :primary,
style: :text,
data_turbo_frame: Avo::MODAL_FRAME_ID do %>
data: {
turbo_frame: Avo::MODAL_FRAME_ID,
target: :attach
} do %>
<%= t('avo.attach_item', item: @field.name.humanize(capitalize: false)) %>
<% end %>
<% end %>
Expand Down
3 changes: 1 addition & 2 deletions app/views/avo/associations/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
url: url,
local: true,
data: {
turbo: false,
'turbo-frame': '_top'
turbo_frame: :_top
} do |form| %>
<%= render Avo::ModalComponent.new do |c| %>
<% c.with_heading do %>
Expand Down

0 comments on commit 79bb17f

Please sign in to comment.