Skip to content

slotProps are not available in scoped slot with new v-slot syntax #1457

Closed
@sybrendotinga

Description

@sybrendotinga

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:

  1. With the deprecated scoped-slot syntax works: fullName is available.
  2. With the new v-slot-syntax: fullName is undefined

What is expected?

I expected to have fullName available in slotProps

What is actually happening?

fullName is undefined


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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions