Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pass along anchor in legacy class wrappers
Browse files Browse the repository at this point in the history
fixes #13832
dummdidumm committed Nov 1, 2024
1 parent a315a14 commit c2857e9
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/silly-bulldogs-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: pass along `anchor` in legacy class wrappers
1 change: 1 addition & 0 deletions packages/svelte/src/legacy/legacy-client.js
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit c2857e9

Please sign in to comment.