Ensure spread attribute formatting options match jsxexpression

This commit is contained in:
Benjamin Lichtman
2017-12-28 12:43:17 -08:00
parent ff4f03c51d
commit 3f82034498
+1 -1
View File
@@ -619,7 +619,7 @@ namespace ts.formatting {
}
function isJsxExpressionContext(context: FormattingContext): boolean {
return context.contextNode.kind === SyntaxKind.JsxExpression;
return context.contextNode.kind === SyntaxKind.JsxExpression || context.contextNode.kind === SyntaxKind.JsxSpreadAttribute;
}
function isNextTokenParentJsxAttribute(context: FormattingContext): boolean {