Replies: 6 comments 19 replies
-
Please provide a codepen reproduction of the issue you're describing - ideally in the simplest form possible - thanks! |
Beta Was this translation helpful? Give feedback.
-
I checked your demo. You want to use Here's a forked version of your demo with |
Beta Was this translation helpful? Give feedback.
-
If you want to inject element after any others, it must do more hacks. I provide a new example: https://codepen.io/asika32764/pen/KKvBGaY |
Beta Was this translation helpful? Give feedback.
-
This is an issue I'm currently fighting too, is there any more development on whether this might be tackled? 🙂 |
Beta Was this translation helpful? Give feedback.
-
I also ran into this issue. Aside from the workarounds listed above, here are two other options I found:
I like the second option a lot since it doesn't seem to have any visual artifacts, doesn't require changing Alpine's internal state, and still keeps Alpine as the source of truth for my data. It would be nice to have a more official solution/plugin to handle this. |
Beta Was this translation helpful? Give feedback.
-
See my solution here: #4157 (comment) |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I have the following code that works perfectly with alpine V2 but fails now with V3
It is used with a :
< template x-for="(step, index) in steps" :key="index" >
After upgrading to V3, the internal "steps" data are still properly updated when rows are sorting (using sortable js library) but when alpine refreshes its x-for loop, it seems to introduce a shifting somewhere in the process. I mean the elements are redrawn with a shift of one place.
I've had a quick look at the for code, but this is a bit complicated for me ;-)
Thanks a lot for your hard work.
Sébastien.
Beta Was this translation helpful? Give feedback.
All reactions