Skip to content

Attribute incorrectly added for opening JSX tag #47090

Closed
@ericsj

Description

@ericsj

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.63.0
  • OS Version: Ubuntu 20.04.1

Steps to Reproduce:

  1. Create a functional React component
  2. Inside the element's return create a React Fragment
  3. Inside the fragment's scope type "<" and start typing a html element name until intellisense suggests some. Type tab or enter. Instead of "button" for example, it will place "button={}"

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions