-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
"Multiple" root components could be allowed if v-if and v-else are used #3878
Comments
My work-around for now:
Does that make sense? |
wasn't this added already @chrisvfritz ? |
I do distinctly remember adding this feature. I'll investigate, probably later today. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vue.js version
2.0.1
Reproduction Link
https://jsfiddle.net/alexman/h64y6bj1/1/
Steps to reproduce
Set up a standalone component with template:
And computed field:
What is Expected?
v-if
with av-else
following it resolves to exactly 1 component, so I believe it could be allowed and not throw an error about a missing root component.Making
isComplex()
returntrue
in the example should display adiv
, andfalse
would display abutton
.What is actually happening?
The text was updated successfully, but these errors were encountered: