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

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.

7 Likes

Tying this together with Pressing "Add edit reason" button does not auto-focus into the text field

4 Likes

Sure, good idea!

https://github.com/discourse/discourse/commit/3ad1423c5390595cdf80242815d6e43412a12ae7

Also the CSS was WAY off.

5 Likes

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