Skip to content

Commit aced13c

Browse files
committed
🩹 Svelte panels mounting to wrong element
1 parent 7595f5e commit aced13c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/sveltePanel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class SveltePanel extends Panel {
2727

2828
void pollPromise(() => document.querySelector(`#${mountId}`)).then(el => {
2929
this.instance = new options.component({
30-
target: el.parentElement,
30+
target: el,
3131
props: options.props,
3232
})
3333
})

0 commit comments

Comments
 (0)