Alpine "forgetting" attributes when moving dom elements around #4449
-
On Alpine 3.14.4, when moving dom elements that have Alpine attributes attached, Alpine "forgets" those attributes. In the following examples, some elements with x-show attributes get moved inside the x-init event. With Alpine 3.14.3 everything works as expected. Example: Alpine 3.14.3: https://codepen.io/sergio-agosti/pen/YzmdeZO |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Definitely related to #4447 🤔 It's not so much forgetting the attributes, but that the elements initially are queued to initialize, and then get moved, and it's messing things up. This is a rather contrived case that doesn't make much sense, but I do agree that it SHOULD work. |
Beta Was this translation helpful? Give feedback.
-
Fix is in #4450 |
Beta Was this translation helpful? Give feedback.
Fix is in #4450