Replies: 2 comments 1 reply
-
x-if and x-for are separate things. They are both cloning the template, so of course it will do 3. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, so I have to move condition directly to x-for, |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Result
Expected result (valid when x-if="open" is removed)
If the element contains x-if="open" then the elements are repeated 3 times, some empty element without access to e.g. the index is added. When this is removed, the element duplicates correctly 2 times.
Beta Was this translation helpful? Give feedback.
All reactions