diff --git a/compiler/ast/CustomTag.js b/compiler/ast/CustomTag.js index c8f3ab85e..459cf2a04 100644 --- a/compiler/ast/CustomTag.js +++ b/compiler/ast/CustomTag.js @@ -70,6 +70,10 @@ function buildInputProps(el, context) { return; // Skip over attributes that are not supported } + if (attrValue == null) { + attrValue = context.builder.literalTrue(); + } + var propName; var parentPropName;