Skip to content

Commit e7d68d8

Browse files
authored
fix: pass along anchor in legacy class wrappers (#14100)
fixes #13832
1 parent a315a14 commit e7d68d8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/silly-bulldogs-rest.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: pass along `anchor` in legacy class wrappers

packages/svelte/src/legacy/legacy-client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class Svelte4Component {
110110

111111
this.#instance = (options.hydrate ? hydrate : mount)(options.component, {
112112
target: options.target,
113+
anchor: options.anchor,
113114
props,
114115
context: options.context,
115116
intro: options.intro ?? false,

0 commit comments

Comments
 (0)