# When editing, click on "add edit reason" should focus on input

**URL:** https://meta.discourse.org/t/when-editing-click-on-add-edit-reason-should-focus-on-input/46348
**Category:** Feature
**Created:** [2016年六月23日 15:49 UTC](https://meta.discourse.org/t/when-editing-click-on-add-edit-reason-should-focus-on-input/46348 "2016-06-23T15:49:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rhyolight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhyolight/32/120422_2.png) [@rhyolight](https://meta.discourse.org/u/rhyolight)
#### Post date: [2016年六月23日 15:49 UTC](https://meta.discourse.org/t/when-editing-click-on-add-edit-reason-should-focus-on-input/46348/1 "2016-06-23T15:49:42Z")

</div>

I always add a reason when I edit a post, and it takes one extra click to do it. If a user clicks the “add edit reason” link, you can safely assume they will immediately be typing in the edit reason, so the input field should immediately get focus for input.

https://www.youtube.com/embed/81ZSLDRv5hQ?feature=oembed&wmode=opaque

---

<div class="post-metadata">

### Author: ![AlbionsRefuge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/albionsrefuge/32/116896_2.png) [@AlbionsRefuge](https://meta.discourse.org/u/AlbionsRefuge)
#### Post date: [2016年六月26日 22:22 UTC](https://meta.discourse.org/t/when-editing-click-on-add-edit-reason-should-focus-on-input/46348/2 "2016-06-26T22:22:21Z")

</div>

Tying this together with [Pressing "Add edit reason" button does not auto-focus into the text field](https://meta.discourse.org/t/pressing-add-edit-reason-button-does-not-auto-focus-into-the-text-field/39140)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年六月27日 06:49 UTC](https://meta.discourse.org/t/when-editing-click-on-add-edit-reason-should-focus-on-input/46348/3 "2016-06-27T06:49:45Z")

</div>

Sure, good idea!

[https://github.com/discourse/discourse/commit/3ad1423c5390595cdf80242815d6e43412a12ae7](https://github.com/discourse/discourse/commit/3ad1423c5390595cdf80242815d6e43412a12ae7)

Also the CSS was WAY off.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年六月28日 06:50 UTC](https://meta.discourse.org/t/when-editing-click-on-add-edit-reason-should-focus-on-input/46348/4 "2016-06-28T06:50:16Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
