From 14350fcab49f1eef1e58f713e0df4e0c6aad5692 Mon Sep 17 00:00:00 2001 From: Patrick Steele-Idem Date: Thu, 11 Feb 2016 14:57:22 -0700 Subject: [PATCH] Marko v3: An attribute without a value should result in a prop with true value for custom tags --- compiler/ast/CustomTag.js | 4 ++++ 1 file changed, 4 insertions(+) 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;