Skip to content

Commit

Permalink
Scroll new items added into view
Browse files Browse the repository at this point in the history
  • Loading branch information
jp524 committed Jun 13, 2024
1 parent 0d3bb42 commit f60dc55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/controllers/form_input_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default class extends Controller {
detail: dest.lastElementChild,
});

dest.lastElementChild.scrollIntoView();
dest.dispatchEvent(afterInsert);
}

Expand Down

0 comments on commit f60dc55

Please sign in to comment.