Is there a way to re-trigger x-teleport? #4180
Unanswered
docdunning
asked this question in
1. Help
Replies: 1 comment 2 replies
-
You can change the attribute on it, or have the expression evaluate to something you can change. |
Beta Was this translation helpful? Give feedback.
2 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.
-
I've used
x-teleport
to take two elements from their parents and have them in another part of the DOM. They show up (as expected) in the same order as their parents.But now I swap the positions of the parents in the DOM. I'd like the two teleported elements to swap position as well, but they stay where they were.
I'm not entirely surprised by this, but I'm just wondering if there's a way to have Alpine regenerate the x-teleported elements so that they maintain the same order as their parents.
If not, I guess I just have to use some standard JS to move the teleported elements around.
Beta Was this translation helpful? Give feedback.
All reactions