-
Notifications
You must be signed in to change notification settings - Fork 668
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
slotProps are not available in scoped slot with new v-slot
syntax
#1457
Comments
Good catch. There is one bug here The code should be spreading This gets rid of the error we have. But then you end up with:
As the HTML... it's failing to use the |
I am seeing this bug as well. Can't use either When using deprecated syntax, tests run without issues... |
Will try to get onto this soon - not sure how involved it'll be, so I can't make any promises right now. But I think this is an important one to solve, I love thew new syntax. |
Thanks @dobromir-hristov @lmiller1990 , works great! |
Version
1.0.0-beta.31
Reproduction link
https://codesandbox.io/s/ecstatic-nightingale-2u1t6?fontsize=14&hidenavigation=1&previewwindow=tests&theme=dark
Steps to reproduce
Run tests in CodeSandbox. I have provided two tests:
scoped-slot
syntax works:fullName
is available.v-slot
-syntax:fullName
isundefined
What is expected?
I expected to have
fullName
available in slotPropsWhat is actually happening?
fullName
isundefined
I have searched several similar issues in this repo, but it seems that the new syntax should work in
beta.31
. Maybe I am overlooking something?https://vuejs.org/v2/guide/components-slots.html#Scoped-Slots
The text was updated successfully, but these errors were encountered: