Skip to content

defineCustomElement causes style loss #9717

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

Closed
WoJiaoFuXiaoYun opened this issue Nov 30, 2023 · 1 comment
Closed

defineCustomElement causes style loss #9717

WoJiaoFuXiaoYun opened this issue Nov 30, 2023 · 1 comment

Comments

@WoJiaoFuXiaoYun
Copy link

WoJiaoFuXiaoYun commented Nov 30, 2023

Vue version

3.3.4

Link to minimal reproduction

https://play.vuejs.org/#eNqVUk1TwjAQ/SuZXNAZaAe4ITKjDAc9qKMec6npUgtp0klSxGH4726SUop8ON728+17u7uhd2UZrSqgIzo2XOelJQZsVU6YzItSaUs2KcxzCdPKWFXMBBQg7ZbMtSpIBxs7TeFUFWUdj2LnRBwcNFYwydvtJgqYV50Q7kGId7rkxLArh3V9zeQ4DgyRGzoWilIkFtAjZHwINBnHvwKuu9VBu9QaruQ8z6KFURLlbxwOoxyH5QL0c2lzJQ2jI+IzLpcIob4efczqCrq7OP8EvjwRX5i1izH6osGAXgGjTc4mOgMb0rO3J1ij3SQLlVYCqy8kX8EoUTmOoey+kinSbtV5tg/+NrnM3s1sbUGanShH1FVufT2jeCi353PS93SH0dD3MbnFLbbufP6FXFH/4DX69WNcOmmar7wRTMJFYswtMgFje95htM4TP6GmUbfErfYwPw6wdeLgHdA19ls4M9rjo/iPhC8zrXC3Pa6E0iOSaQB5g+I9+bqpXoRXdbSGPzSeEDZolDWo/6Q+8Ic7Zq8hPeK+/QH0IGCe

Steps to reproduce

Not needed

What is expected?

I'm not sure if this is a bug.
When I use defineCustomElement to convert a Vue Component to a Web Component,Import another component into a Vue component, and the style of the other component will not be injected into the shadow root of the custom element.

What is actually happening?

The 2 components of Vue are used as a web component (at least it appears to be in a shadow root), and the styles should be injected into the shadow root

System Info

No response

Any additional comments?

No response

@baiwusanyu-c
Copy link
Member

Duplicate of #4662

@baiwusanyu-c baiwusanyu-c marked this as a duplicate of #4662 Nov 30, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants