You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given some DOM element and a variable x, create an element with a v-if directive bound to the variable x and, optionally, a transition set.
Toggle the variable a few times.
What is Expected?
The DOM element should be removed and attached several times to the parent. If the transition is set, it should be applied also.
What is actually happening?
The behaviour is erratic. Sometimes the element is rendered correctly, but eventually the next sibling is attached instead. Also, if a transition is set, it isn't applied at all.
The text was updated successfully, but these errors were encountered:
@yyx990803 now, (1) when you show the item while transitioning, a duplicated element is added to the DOM, as seen in https://jsfiddle.net/ybh4w2sx/8/. Also, (2) if you have two elements with the v-if directive, the vm inserts the wrong element. The fiddle was updated to better enlighten you about the bug.
Edit: (1) only happens when the element is leaving the DOM.
Vue.js version
2.0.0-beta.1
Reproduction Link
https://jsfiddle.net/ybh4w2sx/
Steps to reproduce
x
, create an element with av-if
directive bound to the variablex
and, optionally, a transition set.What is Expected?
The DOM element should be removed and attached several times to the parent. If the transition is set, it should be applied also.
What is actually happening?
The behaviour is erratic. Sometimes the element is rendered correctly, but eventually the next sibling is attached instead. Also, if a transition is set, it isn't applied at all.
The text was updated successfully, but these errors were encountered: