cssinjs
cssinjs copied to clipboard
prependQueue style 样式丢失
我的 chrome 插件(用的 plasmo 框架)有两个 shadowDom 的 content_script 注入,其中随机的出现部分 antd 样式丢失,比如 ant-tooltip
而同一个页面另外个 shadowRoot 正常:
对应的 style 标签内容正常:
两个 shadowRoot 的 StyleProvider 写法也没区别:
<StyleProvider container={document.getElementById(SEARCH_ENHANCE_ID).shadowRoot}>
和
<StyleProvider container={document.getElementById(HOST_ID).shadowRoot}>
依赖版本: "@ant-design/cssinjs": "^1.10.1", "antd": "^5.6.3",
我也出现了这个问题,部分组件的样式丢失,请问你解决了吗
Having the same issue. Works fine for most element, but e.g. ant-message components are getting injected into the head, instead of the shadowRoot passed to the container
I have the same issue with Tag component
Trace https://github.com/ant-design/ant-design/issues/45894
cc @zombieJ
我也是在开发Chrome插件时使用shadowDom,其他组件能正确插入到指定节点,只有message的样式被插入到了body-head中