Skip to content

Commit 31fd08f

Browse files
committed
fix(compiler): maybeComponent should aware of "is" attribute
1 parent c351505 commit 31fd08f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/compiler/codegen/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class CodegenState {
2626
this.dataGenFns = pluckModuleFunction(options.modules, 'genData')
2727
this.directives = extend(extend({}, baseDirectives), options.directives)
2828
const isReservedTag = options.isReservedTag || no
29-
this.maybeComponent = (el: ASTElement) => !isReservedTag(el.tag)
29+
this.maybeComponent = (el: ASTElement) => !(isReservedTag(el.tag) && !el.component)
3030
this.onceId = 0
3131
this.staticRenderFns = []
3232
}

0 commit comments

Comments
 (0)