# 主题标题输入框在图片上传成功后不应失去焦点

**URL:** https://meta.discourse.org/t/topic-title-input-should-not-lose-focus-after-image-upload-succeeds/103050
**Category:** UX
**Created:** [2018年十一月29日 04:34 UTC](https://meta.discourse.org/t/topic-title-input-should-not-lose-focus-after-image-upload-succeeds/103050 "2018-11-29T04:34:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [2018年十一月29日 04:34 UTC](https://meta.discourse.org/t/topic-title-input-should-not-lose-focus-after-image-upload-succeeds/103050/1 "2018-11-29T04:34:00Z")

</div>

This is a minor usability issue report.

Reproduction steps:

1. Copy a huge image into clipboard (e.g. Ctrl+C on Win, Command+C on Mac)
2. Click on the “New Topic” button
3. Focus the Message editor area
4. Paste the image from clipboard (e.g. Ctrl+V on Win, Command+V on Mac)
5. Immediately focus the Title input and start typing
6. At some point in time, the image upload is done and the focus moves to the Message editor. If you’re typing the Title at that time, some characters will appear in the Message editor rather than in the Title input. Now you have to delete those characters, move the focus back to the Title input, and continue typing the title.

**What is expected instead:** Title input should not lose focus.

Demo:

[https://global.discourse-cdn.com/meta/original/3X/9/4/9424e19290590f479db4fae1cda58d41427e6072.mp4](https://global.discourse-cdn.com/meta/original/3X/9/4/9424e19290590f479db4fae1cda58d41427e6072.mp4)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2018年十一月29日 11:17 UTC](https://meta.discourse.org/t/topic-title-input-should-not-lose-focus-after-image-upload-succeeds/103050/2 "2018-11-29T11:17:32Z")

</div>

@maja can you add that to your list?

We don’t want to steal the focus whenever an upload has finished.

---

<div class="post-metadata">

### Author: ![maja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maja/32/129533_2.png) [@maja](https://meta.discourse.org/u/maja)
#### Post date: [2018年十二月3日 10:36 UTC](https://meta.discourse.org/t/topic-title-input-should-not-lose-focus-after-image-upload-succeeds/103050/3 "2018-12-03T10:36:21Z")

</div>

This is fixed per  
[https://github.com/discourse/discourse/commit/142361d6da0215b6a12f4b8051afc156ba88a0a0](https://github.com/discourse/discourse/commit/142361d6da0215b6a12f4b8051afc156ba88a0a0)

---

<div class="post-metadata">

### Author: ![maja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maja/32/129533_2.png) [@maja](https://meta.discourse.org/u/maja)
#### Post date: [2018年十二月3日 10:36 UTC](https://meta.discourse.org/t/topic-title-input-should-not-lose-focus-after-image-upload-succeeds/103050/4 "2018-12-03T10:36:27Z")

</div>


