Skip to content

Commit 4f29972

Browse files
committed
make sure correct textarea is selected on comment report modal open
1 parent 4064d6d commit 4f29972

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎public/js/workshop.item.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ $(function(e){
475475

476476
// Report modal: Select reason textarea on show
477477
$('body').on('shown.bs.modal', '#reportModal', function () {
478-
$('textarea', this).focus();
478+
$('textarea[name="reason"]', this).focus();
479479
})
480480

481481
// Comment report

0 commit comments

Comments
 (0)