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

allow 2 root nodes with v-if and v-else #3940

Closed
lincenying opened this issue Oct 14, 2016 · 3 comments
Closed

allow 2 root nodes with v-if and v-else #3940

lincenying opened this issue Oct 14, 2016 · 3 comments
Labels

Comments

@lincenying
Copy link

ver: 2.0.3
mac/chrome 53

#3887
看上面的地址说, 修复了 v-if和v-else, 可以允许两个根元素, 但是:
当v-if条件成立时, v-if能正常渲染出来
当v-if条件不成立时, v-else并不会渲染出来

Test:
https://jsfiddle.net/lincenying/h64y6bj1/4/

代码中的button, 并没有渲染出来. ( In the code v-else, does not render it. )

@yyx990803
Copy link
Member

@chrisvfritz might want to look into this?

@lincenying
Copy link
Author

lincenying commented Oct 14, 2016

https://cdn.jsdelivr.net/vue/2.0.3/vue.min.js
https://cdn.jsdelivr.net/vue/2.0.3/vue.js
可能是打包的问题, 用vue.min.js 有这个bug, 但是用vue.js, 并没有这个bug

( using the vue.min.js have this bug, but the use of vue.js, is not this bug )

另外, webpack的开发环境也没这个bug, 用生产环境就会出现

@chrisvfritz
Copy link
Contributor

On it. Pretty sure I already know what this is and if I'm right, should be a simple fix.

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

No branches or pull requests

3 participants