Skip to content

Commit

Permalink
fix: pass along anchor in legacy class wrappers (#14100)
Browse files Browse the repository at this point in the history
fixes #13832
  • Loading branch information
dummdidumm authored Nov 1, 2024
1 parent a315a14 commit e7d68d8
Show file tree
Hide file tree
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
Expand Up @@ -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,
Expand Down

0 comments on commit e7d68d8

Please sign in to comment.