Skip to content

Commit 456f1f5

Browse files
committed
fix: use uiContainer to apply position when creating shadow root ui
Companion PR for aklinker1/webext-core#118
1 parent d28a5c7 commit 456f1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/wxt/src/utils/content-script-ui/shadow-root.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export async function createShadowRootUi<TMounted>(
5555
const mount = () => {
5656
// Add shadow root element to DOM
5757
mountUi(shadowHost, options);
58-
applyPosition(shadowHost, shadow.querySelector('html'), options);
58+
applyPosition(shadowHost, uiContainer, options);
5959

6060
// Add document CSS
6161
if (

0 commit comments

Comments
 (0)