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
The elements in the 'content' slot with the v-if directive should display based on whether the value of 'foo' is true/false.
The elements with no v-if directive should display regardless of the value of 'foo'.
What is actually happening?
When the elements are direct children of the slot template, neither are visible when 'foo' is false, both are visible when 'foo' is false if the element with the v-if directive is the first.
If the element without the v-if directive is the first, it is always displayed while the the the element with the v-if directive displays according to the value of 'foo'.
When the elements are wrapped and not direct children of the slot template, the element with the v-if directive displays according to the value of 'foo'. The element with no v-if directive always displays.
The behaviour was as expected before upgrading to [email protected]. Rolled back to [email protected] and the expected behaviour was restored.
The text was updated successfully, but these errors were encountered:
Version
2.6.13
Reproduction link
https://codepen.io/mrkwdwrd/pen/YzZedOe
Steps to reproduce
Use the button to toggle the value of 'foo'.
What is expected?
The elements in the 'content' slot with the v-if directive should display based on whether the value of 'foo' is true/false.
The elements with no v-if directive should display regardless of the value of 'foo'.
What is actually happening?
When the elements are direct children of the slot template, neither are visible when 'foo' is false, both are visible when 'foo' is false if the element with the v-if directive is the first.
If the element without the v-if directive is the first, it is always displayed while the the the element with the v-if directive displays according to the value of 'foo'.
When the elements are wrapped and not direct children of the slot template, the element with the v-if directive displays according to the value of 'foo'. The element with no v-if directive always displays.
The behaviour was as expected before upgrading to [email protected]. Rolled back to [email protected] and the expected behaviour was restored.
The text was updated successfully, but these errors were encountered: