Skip to content

Commit c1932aa

Browse files
committed
oops
1 parent 049b5a0 commit c1932aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ export function set_attributes(element, prev, next, css_hash, skip_warning = fal
448448
}
449449

450450
for (let symbol of Object.getOwnPropertySymbols(next)) {
451-
if (symbol.description === ATTACHMENT_KEY && !(key in prev)) {
451+
if (symbol.description === ATTACHMENT_KEY && (prev == undefined || !(symbol in prev))) {
452452
attach(element, () => next[symbol]);
453453
}
454454
}

0 commit comments

Comments
 (0)