diff --git a/src/compiler/compile/render_dom/wrappers/Element/index.ts b/src/compiler/compile/render_dom/wrappers/Element/index.ts index 69f5cea93d..ea9e12796a 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/index.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/index.ts @@ -1133,7 +1133,7 @@ export default class ElementWrapper extends Wrapper { block.chunks.hydrate.push(updater); - if (this.node.is_dynamic_element ? this.has_dynamic_attribute : has_spread) { + if ((this.node.is_dynamic_element && this.has_dynamic_attribute) || has_spread) { block.chunks.update.push(updater); } else if ((dependencies && dependencies.size > 0) || this.class_dependencies.length) { const all_dependencies = this.class_dependencies.concat(...dependencies);