Update src/compiler/compile/render_dom/wrappers/Element/index.ts

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/8161/head
Tan Li Hau 4 years ago committed by tanhauhau
parent a1128889d4
commit 1c5dc1da2a

@ -1133,7 +1133,7 @@ export default class ElementWrapper extends Wrapper {
block.chunks.hydrate.push(updater); 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); block.chunks.update.push(updater);
} else if ((dependencies && dependencies.size > 0) || this.class_dependencies.length) { } else if ((dependencies && dependencies.size > 0) || this.class_dependencies.length) {
const all_dependencies = this.class_dependencies.concat(...dependencies); const all_dependencies = this.class_dependencies.concat(...dependencies);

Loading…
Cancel
Save