Преглед на файлове

fix: pass element creation helper to static render fns for functional components

fix #12625
Evan You преди 3 години
родител
ревизия
dc8a68e8c6
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/core/instance/render-helpers/render-static.ts

+ 1 - 1
src/core/instance/render-helpers/render-static.ts

@@ -18,7 +18,7 @@ export function renderStatic(
   // otherwise, render a fresh tree.
   tree = cached[index] = this.$options.staticRenderFns[index].call(
     this._renderProxy,
-    null,
+    this._c,
     this // for render fns generated for functional component templates
   )
   markStatic(tree, `__static__${index}`, false)