Skip to content

Commit

Permalink
Target the top frame on resource edit and create frames
Browse files Browse the repository at this point in the history
This tells turbo to reload the page if we redirect from
a turbo frame request. No need to respond with a turbo
refresh stream.
  • Loading branch information
tvdeyen committed Jan 22, 2025
1 parent 8e12a12 commit ae58d00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
<% end %>

<% turbo_frames.each do |frame| %>
<%= turbo_frame_tag frame %>
<%= turbo_frame_tag frame, target: "_top" %>
<% end %>
<% end %>

0 comments on commit ae58d00

Please sign in to comment.