Skip to content

Commit

Permalink
Fix circularity for JSX elements
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg committed Mar 10, 2021
1 parent a0fbf5c commit 1a695e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23582,7 +23582,7 @@ namespace ts {
}

function hasContextualTypeWithNoTypeVariables(node: Expression) {
const contextualType = getContextualType(node);
const contextualType = !((isJsxOpeningElement(node.parent) || isJsxSelfClosingElement(node.parent)) && node.parent.tagName === node) && getContextualType(node);
return contextualType && !someType(contextualType, containsTypeVariable);
}

Expand Down

0 comments on commit 1a695e9

Please sign in to comment.