Hi all,
I have a column on my messages index page dedicated to show a list of all messages a user has, and another column on the same page which should display the selected message.
Unfortunately when I click a message, the placeholder text “Select a conversation” disappears, but the message doesn’t actually render within the frame that I set with data-turbo-frame. When I check console logs, I get:
turbo.es2017-esm.js:5198 Response has no matching <turbo-frame id="show_message"> element
<div class="col-md-2 border-end h-100 overflow-scroll gx-0 example p-2">
<% @messages.each do |message| %>
<%= turbo_frame_tag dom_id(message) do %>
<%= link_to message.id, profile_message_path(message.profile, message), data: { turbo_frame: "show_message" } %>
<% end %>
<% end %>
</div>
<div class="col col-md-9 col-lg-8">
<%= turbo_frame_tag "show_message" do %>
<div class="h-100 w-100 d-flex justify-content-center align-items-center fs-4 fw-400">Select a conversation</div>
<% end %>
</div>
Any pointers?