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

在shadowRoot中使用时, 切换theme算法无效. #189

Closed
SakuraHentai opened this issue Jul 25, 2024 · 0 comments · Fixed by #211
Closed

在shadowRoot中使用时, 切换theme算法无效. #189

SakuraHentai opened this issue Jul 25, 2024 · 0 comments · Fixed by #211

Comments

@SakuraHentai
Copy link
Contributor

image

原因在

removeCSS(styleId, { mark: ATTR_MARK });

无传递 container 到 attachTo, getContainer 使用了页面的 document 而非指定的 container. 导致旧样式无删除.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant