Subscribe on changes!

v-show does not take effect with custom directive on parent

avatar
Oct 8th 2020

Version

3.0.0

Reproduction link

https://jsfiddle.net/9es7j4q1/2/

Steps to reproduce

  1. Add any custom directive to a parent component
  2. Use v-show directive in the child's root DOM
  3. If the value of v-show is false the child is still shown
  4. (change v-show to v-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

avatar
Oct 8th 2020

@LinusBorg have tested on latest version https://github.com/vuejs/vue-next/tree/fbd198fbfe2f87c3c15a63d9770d00bf3fc9c142 , child element is hidden correctly

avatar
Oct 8th 2020

Duplicate of #2298?

avatar
Oct 8th 2020

yeah, fixed by 4d1ebb5deb4c1cb2a02e8482bf8f9cc87197b088