-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Scoped data attributes aren't passed down to functional components #13827
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
Comments
Note that this can be worked around with |
This is Vue behaviour: https://stackblitz.com/edit/github-qwk9ei. Would you raise an upstream bug report at https://github.com/vuejs/core? |
Ah interesting it seems to be happening on SSR only then. |
@danielroe should be fixed in vuejs/core@847d7f7 |
Environment
Stackblitz :
Linux
v16.14.2
3.0.0-rc.1
[email protected]
vite
-
-
-
My laptop :
Darwin
v16.14.2
3.0.0-rc.1
[email protected]
vite
modules
,css
,components
,target
,generate
,experimental
,vueuse
,runtimeConfig
,postcss
@nuxt/[email protected]
,@intlify/[email protected]
,@vueuse/[email protected]
,@unocss/[email protected]
,@pinia/[email protected]
-
Reproduction
https://stackblitz.com/edit/github-5yttbb?file=pages%2Findex.vue
Describe the bug
The data-attribute of a scoped css parent isn't passed down to functional component styles (ie components created with the h function).

A picture is worth a thousands words :
Additional context
I don't have this issue with my usual vue3 + vite setup, so I assume it's a Nuxt bug ?
Logs
No response
The text was updated successfully, but these errors were encountered: