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

组件在前后dom节点的v-if指令更新时导致组件也更新@2.4.2 #6502

Closed
chenfengjw163 opened this issue Sep 4, 2017 · 0 comments

Comments

@chenfengjw163
Copy link

Version

2.4.2

Reproduction link

https://jsfiddle.net/chenfeng/h2zcmwnm/

Steps to reproduce

<div id="app">
  <div v-if="show">
    div1
  </div>
  <demo></demo>
  <div v-if="show">
    div2
  </div>
</div>

如上结构,show更新时会导致demo组件重新渲染

tips:sorry 上一个issue用错vue的版本,现在改成2.4.2版本也是有同样问题。

What is expected?

demo组件和v-if指令无关时不能刷新

What is actually happening?

show更新时会导致demo组件重新渲染

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

1 participant