Skip to content

Rename JSX element should rename open and closing tag only #25133

Closed
@mhegazy

Description

@mhegazy

TypeScript Version: 3.0.0-dev.201xxxxx

Search Terms:

Code

var x = <div></div>; // rename div in open element to span
var y = <div></div>;

Expected behavior:

var x = <span></span>; 
var y = <div></div>;

Actual behavior:

var x = <div></div>; 
var y = <div></div>;

Playground Link:

Related Issues:

It is worth nothing that Occurrences highlight open and closed elements for JSX but not rename.

Find all references should not change though. there is value in finding all div elements in the code base.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitterFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions