v-show does not take effect with custom directive on parent
Version
3.0.0
Reproduction link
https://jsfiddle.net/9es7j4q1/2/
Steps to reproduce
- Add any custom directive to a parent component
- Use
v-show
directive in the child's root DOM - If the value of
v-show
is false the child is still shown - (change
v-show
tov-if
and the child will not be shown)
What is expected?
Visually hide child element with v-show
even if parent has a custom directive
What is actually happening?
The child element still appears
@LinusBorg have tested on latest version https://github.com/vuejs/vue-next/tree/fbd198fbfe2f87c3c15a63d9770d00bf3fc9c142 , child element is hidden correctly