diff --git a/.changeset/silly-bulldogs-rest.md b/.changeset/silly-bulldogs-rest.md new file mode 100644 index 0000000000..f92eb81575 --- /dev/null +++ b/.changeset/silly-bulldogs-rest.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: pass along `anchor` in legacy class wrappers diff --git a/packages/svelte/src/legacy/legacy-client.js b/packages/svelte/src/legacy/legacy-client.js index 4148f3d1cd..c7684570bb 100644 --- a/packages/svelte/src/legacy/legacy-client.js +++ b/packages/svelte/src/legacy/legacy-client.js @@ -110,6 +110,7 @@ class Svelte4Component { this.#instance = (options.hydrate ? hydrate : mount)(options.component, { target: options.target, + anchor: options.anchor, props, context: options.context, intro: options.intro ?? false,