Alpine.morph fails in basic todo-list like scenario #4195
Unanswered
Mai-Lapyst
asked this question in
5. Bugs
Replies: 1 comment
-
okay. It looks to me the issue might be in tracking reference to the parent tree... where Alpine.morph really needs to be on the rootiest root of the matching tree.. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have the problem that in a todo-list like list,
Alpine.morph
does not behave as expected with serverside rendered html.If I run the example app down below, I get following issues:
These problems also persist if I use
this.$root
instead ofthis.$el
.One workaround is to use
this.$root.outerHTML = html;
, but ofc this isn't ideal.Browser: Firefox 124.0.1 & Vivaldi 6.6.3271.55
Code for `app.js`
Code for `alpine.js`
Beta Was this translation helpful? Give feedback.
All reactions