# jsx_tag_auto_close: Fix \`\<Foo.Bar\>\` component auto-close \(\#27374\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f2be201495550431a10d44faca911be145192256)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f2be201495550431a10d44faca911be145192256

Requested commit: f2be201495550431a10d44faca911be145192256

Commit: f2be201495550431a10d44faca911be145192256

Tree: 60b42cf228ac9fdc6987881881ad2dd316af965a

Author: Ben Kunkle

Committer: GitHub

## Message

```
jsx_tag_auto_close: Fix `<Foo.Bar>` component auto-close (#27374)

- **support alternate tag name node names to fix autoclosing of
`<Foo.Bar>` style tags in TSX**
- **remove checks against close tag name while checking if tag is
closed**
- **move jsx tag auto close tests into jsx_tag_auto_close.rs**

Closes #27335

Release Notes:

- Fixed an issue with JSX tag auto-close where components containing a
`.` access like `<Foo.Bar>` would be auto-closed as `</>` instead of
`</Foo.Bar>`
```

## Parents

- [43712285bfa8aa75bac1ca8a7eb5146dd36239be](https://git.cafe/gitcafe/zed/commit/43712285bfa8aa75bac1ca8a7eb5146dd36239be?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f2be201495550431a10d44faca911be145192256?format=markdown)
