Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v-show=false can not hide element in source code #6123

Closed
decba78b opened this issue Jun 16, 2022 · 0 comments · Fixed by #7247
Closed

v-show=false can not hide element in source code #6123

decba78b opened this issue Jun 16, 2022 · 0 comments · Fixed by #7247

Comments

@decba78b
Copy link

Vue version

3.2.31

Link to minimal reproduction

https://stackblitz.com/edit/github-96ft3e-rqszjf?file=src%2FApp.vue,src%2FAppImage.vue

Steps to reproduce

1、create a dynamic components
2、use v-show to show or hdie the components.
AppImage.js

<component :is="tag">
  <slot />
</component>

main.js

<AppImage>
  <AppImage v-show="object">works</AppImage>
</AppImage>
<AppImage>
  <AppImage v-show="!object">works</AppImage>
</AppImage>

3、the hidden components will show up at start and display: none can not be found in source code

What is expected?

the dynamic components hide correctly

What is actually happening?

the dynamic components will show up

System Info

No response

Any additional comments?

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants