mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: An attribute without a value should result in a prop with true value for custom tags
This commit is contained in:
parent
67c431019d
commit
14350fcab4
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user