Skip to content
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

[Vue SSR]: Scoped data attributes aren't passed down to functional components #5817

Closed
Hebilicious opened this issue Apr 27, 2022 · 2 comments
Labels

Comments

@Hebilicious
Copy link

Hebilicious commented Apr 27, 2022

Version

3.2.25

Reproduction link

stackblitz.com

Steps to reproduce

Create a component with a scoped style (parent)
Create a regular component with a template tag (children)
Create a functional component that uses h (children)

The regular children inherit the data attribute from the parent
The functional children doesn't inherit the data attribute from the parent.

What is expected?

The child functional component should receive the data attributes as if it were a template component

What is actually happening?

Functional and Regular component behaves differently in this instance :

image


@liulinboyi
Copy link
Member

Version

3.2.25

Reproduction link

stackblitz.com

Steps to reproduce

Create a component with a scoped style (parent) Create a regular component with a template tag (children) Create a functional component that uses h (children)

The regular children inherit the data attribute from the parent The functional children doesn't inherit the data attribute from the parent.

What is expected?

The child functional component should receive the data attributes as if it were a template component

What is actually happening?

Functional and Regular component behaves differently in this instance :

image

I recommend not using the same class 😉.

liulinboyi added a commit to liulinboyi/core that referenced this issue Apr 28, 2022
@Hebilicious
Copy link
Author

@liulinboyi Thanks for the quick fix 🙏
I used the same class to illustrate the bug visually, but it happened to me in a totally different scenario :D

@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
4 participants