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

The v-if on the first child tag in the template tag will affect other child tags #12101

Closed
gongshun opened this issue Jun 2, 2021 · 3 comments

Comments

@gongshun
Copy link

gongshun commented Jun 2, 2021

Version

2.6.13

Reproduction link

https://github.com/gongshun/vue-template-bug-repetition

This is a component with slots

image

When i use it

image

Its result

image

Steps to reproduce

npm install
npm run serve

open http://localhost:8080/ in browser

What is expected?

The v-if on the first child tag in the template tag affects other child tags

What is actually happening?

The v-if on the first child tag in the template tag does not affects other child tags

@fydwxyd
Copy link

fydwxyd commented Jun 2, 2021

i have the same problem

@pmareke
Copy link

pmareke commented Jun 2, 2021

Me too, thanks for open this issue @gongshun 🔝

@posva
Copy link
Member

posva commented Jun 2, 2021

Closing in favor of #12102

@posva posva closed this as completed Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants