Skip to content

Commit 9866c22

Browse files
committed
fix: handle event hoisting props referencing
1 parent 24a30eb commit 9866c22

File tree

1 file changed

+1
-0
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client

1 file changed

+1
-0
lines changed

packages/svelte/src/compiler/phases/3-transform/client/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ function get_hoistable_params(node, context) {
327327
params.push(b.id(binding.node.name.slice(1)));
328328
params.push(b.id(binding.node.name));
329329
} else if (
330+
// If we are referencing a simple $$props value, then we need to reference the object property instead
330331
binding.kind === 'prop' &&
331332
!binding.reassigned &&
332333
binding.initial === null &&

0 commit comments

Comments
 (0)