Marko v3: An attribute without a value should result in a prop with true value for custom tags

This commit is contained in:
Patrick Steele-Idem 2016-02-11 14:57:22 -07:00
parent 67c431019d
commit 14350fcab4

View File

@ -70,6 +70,10 @@ function buildInputProps(el, context) {
return; // Skip over attributes that are not supported return; // Skip over attributes that are not supported
} }
if (attrValue == null) {
attrValue = context.builder.literalTrue();
}
var propName; var propName;
var parentPropName; var parentPropName;