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 child component clipped by v-if was rendered twice #10862

Closed
Linjovi opened this issue Nov 25, 2019 · 0 comments
Closed

The child component clipped by v-if was rendered twice #10862

Linjovi opened this issue Nov 25, 2019 · 0 comments

Comments

@Linjovi
Copy link

@Linjovi Linjovi commented Nov 25, 2019

Version

2.5.22

Reproduction link

https://codesandbox.io/embed/vue-template-b6c06?fontsize=14&hidenavigation=1&theme=dark

Steps to reproduce

When the initial value of a is equal to true and b is equal to false, the child component was created twice.
When the initial value of a is equal to false and b is equal to true, the child component was created once.
When the initial value of a and b are same, the child component was created twice.

What is expected?

The child component is created the same number of times in different cases

What is actually happening?

The child component is created the different number of times in different cases

@Linjovi Linjovi closed this Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.