mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-25 05:29:07 -05:00
Fix emit for boolean attributes
This commit is contained in:
@@ -1148,7 +1148,12 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
||||
function emitJsxAttribute(node: JsxAttribute) {
|
||||
emitAttributeName(node.name);
|
||||
write(': ');
|
||||
emit(node.initializer);
|
||||
if (node.initializer) {
|
||||
emit(node.initializer);
|
||||
}
|
||||
else {
|
||||
write('true');
|
||||
}
|
||||
}
|
||||
|
||||
function emitJsxElement(openingNode: JsxOpeningElement|JsxSelfClosingElement, children?: JsxChild[]) {
|
||||
|
||||
Reference in New Issue
Block a user