Auto-closing of tags within curly braces {}
does not work when parent element is same tag in JSX
#58322
Labels
Milestone
{}
does not work when parent element is same tag in JSX
#58322
π Search Terms
typescript javascript jsx auto close closing div tag curly brackets braces
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgIilQ3wFgAoCtCAOwGd4BhXSGpG+AXjgAoBKOJwB8cAN4U4kuNXpYIEQXEwoANnSQUJUojACuUGry1SpAHgAmwAG5DjJ+6Mzy4AMhdwL1oQF84Aej84cwgkOjgaCHgUXRgFNBUIdSDrOAALJCI7E1M-Sxs7PgpvIA
π» Code
π Actual behavior
When working with JSX (both in TypeScript and JavaScript), the auto-closing functionality for HTML tags does not work as expected within curly braces {}. The closing tag (e.g., ) is not automatically inserted when opening a tag inside curly braces when the outer or parent element tag is the same.
π Expected behavior
The auto-closing functionality should work for HTML tags within curly braces {} in JSX, just like it does for tags outside of curly braces. When opening a tag (e.g.,
<div>
) within curly braces, the closing tag (e.g.,</div>
) should be automatically inserted even when parent element tag is the same.Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: