Skip to content

The render function doesn't pass attrs and slots when rendering dynamic components #12690

@ilyasmez

Description

@ilyasmez

Version

2.7.7

Reproduction link

stackblitz.com

Steps to reproduce

  • Use the render function (h) to render a custom Vue component (this is not a problem with native HTML elements).
  • Pass some props/attrs/slots in the render function.
  • You'll see that the component is rendered without the passed props/attrs/slots. As if they weren't passed at all (you'll get the typical Vue warning about required props for example).

What is expected?

The component should render with the passed props/attrs and slots.

What is actually happening?

The component is rendered plain... as if no data was passed.


This works in Vue 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions