[Vue SSR]: Scoped data attributes aren't passed down to functional components
Version
3.2.25
Reproduction link
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 :
- Initially opened there : https://github.com/nuxt/nuxt.js/issues/13827
- Using script setup
- Doesn't happen on non SSR
Version
3.2.25
Reproduction link
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 :
- Initially opened there : Scoped data attributes aren't passed down to functional components nuxt/framework#4605 (comment)
- Using script setup
- Doesn't happen on non SSR