Skip to content

Commit 4dcaf45

Browse files
committed
new comment thread button should autofocus the body too
1 parent 26e791b commit 4dcaf45

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/assets/javascripts/comments.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ $(() => {
302302

303303
if ($thread.is(':hidden')) {
304304
$thread.show();
305+
$thread.find('.js-comment-field').trigger('focus');
305306
}
306307
else {
307308
$thread.hide();

0 commit comments

Comments
 (0)