Explorar el Código

fix missing component tag

Evan You hace 10 años
padre
commit
ae9e7da9c1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/vdom/create-element.js

+ 1 - 1
src/core/vdom/create-element.js

@@ -51,7 +51,7 @@ function _createElement (
       )
     } else if ((Ctor = resolveAsset(context.$options, 'components', tag))) {
       // component
-      return createComponent(Ctor, data, parent, context, host, children)
+      return createComponent(Ctor, data, parent, context, host, children, tag)
     } else {
       // unknown element, but check at runtime because it may get assigned
       // a namespace when its parent normalizes children