I'm creating a table and I want to render a turbo-frame
tag around each row.
Here's the code in an html.erb
file (see line 7).
1. <table class="min-w-full divide-y divide-gray-300">
2. <thead>
3. ...
4. </thead>
5. <tbody>
6. <% current_organization.users.each do |user| %>
7. <%= turbo_frame_tag member do %>
8. <%= render partial: "user/row", locals: {user: user} %>
9. <% end %>
10. <% end %>
18. </tbody>
19. </table>
Inspecting the generated HTML, the turbo-frame
tags are rendered outside of the table and have no content in them (see lines 1 and 2).
1. <turbo-frame id="user_2"></turbo-frame>
2. <turbo-frame id="user_3"></turbo-frame>
3. <table>
4. ...
5. </table>
Any idea why this is happening?