Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
v-if cannot access slot scope with new slot syntax #9862
Steps to reproduce
Use a component that defines a scoped slot like this
What is expected?
The template should evaluate the slot directive first, v-if second. Just as it is done with v-for first, v-if second.
What is actually happening?
The template evaluates the v-if first, resulting in an error (unknown component property)
This functionality was present in the deprecated slot syntax, i stumbled upon it while refactoring to the new one.
I'm using latest Vue, TypeScript, SFC