Closed bestwnh closed 4 months ago
Now if I do this
let shadowRoot = rootView.attachShadow(init: .init(mode: .open, delegatesFocus: true, slotAssignment: .manual)) shadowRoot.ownerDocument?.body?.appendChild(node: childNode)
The shadow root is open correct, but the childNode wound't add to it. But if I change the second line to
shadowRoot.jsValue.appendChild(node.jsValue)
It would work.
Now if I do this
The shadow root is open correct, but the childNode wound't add to it. But if I change the second line to
It would work.