-
-
Notifications
You must be signed in to change notification settings - Fork 197
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Report
Seems like datastar's merge-fragments fails after you morph an original element to use a different html tag name. For example:
<div id="foo" data-on-load="@get('/foo')">0</div>
event: datastar-merge-fragments
data: fragments <p id="foo">1</p>
event: datastar-merge-fragments
data: fragments <p id="foo">2</p>
The first event changes div -> p which for some reason causes the second event not to update the page. You'd expect the element to contain 2 but it actually contains 1.
If this is desired behavior, there should probably be a disclaimer added to the reference docs.
Datastar Version
v1.0.0-beta.10
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working