Skip to content

Commit ffded12

Browse files
committed
fix
1 parent 600a7ad commit ffded12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/svelte/src/internal/client/dom/elements/attributes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,12 +495,14 @@ export function attribute_effect(
495495
}
496496

497497
for (let symbol of Object.getOwnPropertySymbols(next)) {
498-
var n = (current[symbol] = next[symbol]);
498+
var n = next[symbol];
499499

500500
if (symbol.description === ATTACHMENT_KEY && (!prev || n !== prev[symbol])) {
501501
if (effects[symbol]) destroy_effect(effects[symbol]);
502502
effects[symbol] = branch(() => attach(element, () => n));
503503
}
504+
505+
current[symbol] = n;
504506
}
505507

506508
prev = current;

0 commit comments

Comments
 (0)