-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Bug反馈] StyleProvider组件只能在第一次使用时注入样式,后续使用均会丢失样式 #6912
Labels
Comments
4版本使用了css in js,怎么设置px2rem的撒 |
可以支持pwa吗 |
1 task
1 task
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
4.0.1
Environment
Windows11 / Chrome & Edge / Vue 3.3.4
Reproduction link
Steps to reproduce
使用ShadowDOM隔离CSS样式,多次使用StyleProvider指定container,只会在第一次使用StyleProvider时有样式,其余均丢失样式。
注:Antd的React版本无此问题,会正常的向不同的container中注入样式。
详见CodeSandbox:https://codesandbox.io/p/sandbox/confident-fog-f94y8w
What is expected?
多个StyleProvider的container分别拥有自己的样式
What is actually happening?
使用ShadowDOM隔离CSS样式,多次使用StyleProvider指定container,只会在第一次使用StyleProvider时有样式,其余均丢失样式。
The text was updated successfully, but these errors were encountered: