I’m trying to make the basic frame example from the handbook work, unfortunately without success so far. Probably some very obvious mistake on my side, but nothing I tried worked so far and I couldn’t find the solution in any existing discussion.
This is my initial page:
<html>
<head>
<script type="module">
import hotwiredTurbo from 'https://cdn.skypack.dev/@hotwired/turbo';
</script>
<title>Example</title>
</head>
<body>
<h1>Index page</h1>
<turbo-frame id="message_1">
<h1>My message title</h1>
<p>My message content</p>
<a href="/messages/edit/1">Edit this message</a>
</turbo-frame>
</body>
</html>
After clicking the link, Turbo is fetching the following content in the background, as expected:
<body>
<h1>Editing message 1</h1>
<turbo-frame id="message_1">
<form action="/messages/1">
<input name="message[name]" type="text" value="My message title">
<textarea name="message[name]">My message content</textarea>
<input type="submit">
</form>
</turbo-frame>
</body>
However, the initial page remains unchanged, the content is not replaced. The ID of the frame in the response matches the ID of the frame that contains the link. What am I missing?