Skip to content

Commit

Permalink
fix: improve event delegation with shadowed bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Feb 23, 2024
1 parent e104cfb commit d73c4d5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/svelte/src/compiler/phases/2-analyze/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ function get_delegated_event(event_name, handler, context) {

// If we are referencing a binding that is shadowed in another scope then bail out.
if (local_binding !== null && binding !== null && local_binding.node !== binding.node) {
debugger;
return non_hoistable;
}

Expand Down

0 comments on commit d73c4d5

Please sign in to comment.