Skip to content

Commit 277dd65

Browse files
committed
fix: improve bind:this support around proxyied state
1 parent 79e90af commit 277dd65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ export function bind_prop(props, prop, value) {
13451345
function is_bound_this(bound_value, element_or_component) {
13461346
// Find the original target if the value is proxied.
13471347
const proxy_target = bound_value && bound_value[STATE_SYMBOL]?.t;
1348-
return bound_value === element_or_component || (proxy_target === element_or_component);
1348+
return bound_value === element_or_component || proxy_target === element_or_component;
13491349
}
13501350

13511351
/**

0 commit comments

Comments
 (0)