fix(Markdown): hide programmed style in MarkdownShadowDOMRenderer (#9417)

* fix(Markdown): hide programmed style in MarkdownShadowDOMRenderer

* refactor: remove redundant style
This commit is contained in:
one 2025-08-22 22:07:44 +08:00 committed by GitHub
parent f66cb2651f
commit 6a4627cddc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,7 @@ const ShadowDOMRenderer: React.FC<Props> = ({ children }) => {
}
return (
<div ref={hostRef}>
<div ref={hostRef} style={{ display: 'none' }}>
{createPortal(
<StyleSheetManager target={shadowRoot}>
<StyleProvider container={shadowRoot} layer>