# fix\(web\): return focus to the composer after closing a media preview · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/f842ddfbf4b77c1eeb9e3e7523ebefd472aa2dd3)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: f842ddfbf4b77c1eeb9e3e7523ebefd472aa2dd3

Requested commit: f842ddfbf4b77c1eeb9e3e7523ebefd472aa2dd3

Commit: f842ddfbf4b77c1eeb9e3e7523ebefd472aa2dd3

Tree: 3502d277db39e2c47cb79898511490c8729964e0

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(web): return focus to the composer after closing a media preview

Opening an attachment preview from the composer left the composer
expanded, but closing it dropped focus on the removed dialog. The blur
check saw nothing of the composer's under focus and rested it. The
dialog now marks itself as composer-owned while open and hands focus
back to whatever opened it on close.

Co-Authored-By: Claude Code <noreply@anthropic.com>

```

## Parents

- [4557997a01c6af375598d8b97c293045a1f8b5fb](https://git.cafe/pingdotgg/t3code/commit/4557997a01c6af375598d8b97c293045a1f8b5fb?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/f842ddfbf4b77c1eeb9e3e7523ebefd472aa2dd3?format=markdown)
