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

Created on 8 Oct 2020  路  3Comments  路  Source: vuejs/vue-next

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

bug

All 3 comments

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

Duplicate of #2298?

yeah, fixed by 4d1ebb5deb4c1cb2a02e8482bf8f9cc87197b088

Was this page helpful?
0 / 5 - 0 ratings

Related issues

raphael10-collab picture raphael10-collab  路  3Comments

skirtles-code picture skirtles-code  路  3Comments

corkt picture corkt  路  4Comments

HakamFostok picture HakamFostok  路  3Comments

NMFES picture NMFES  路  3Comments