diff --git a/src/compile/render-dom/index.ts b/src/compile/render-dom/index.ts index e4a623f8c7..748c2a1412 100644 --- a/src/compile/render-dom/index.ts +++ b/src/compile/render-dom/index.ts @@ -182,7 +182,7 @@ export default function dom( if (owner && owner !== component.instance_scope) return; const variable = component.var_lookup.get(name); - if (variable && variable.hoistable || variable.global || variable.module) return; + if (variable && (variable.hoistable || variable.global || variable.module)) return; pending_assignments.add(name); component.has_reactive_assignments = true;