mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
refactor(collection/presentation): apply review suggestions
This commit is contained in:
@@ -13,10 +13,10 @@ export default function ShadowDom({ children, containerRef: externalContainerRef
|
||||
|
||||
// Create the shadow root.
|
||||
useEffect(() => {
|
||||
if (!containerRef.current || shadowRoot) return;
|
||||
if (!containerRef.current) return;
|
||||
const shadow = containerRef.current.attachShadow({ mode: "open" });
|
||||
setShadowRoot(shadow);
|
||||
}, [ shadowRoot ]);
|
||||
}, []);
|
||||
|
||||
// Render the child elements.
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user