From f60dc55e649cdd1ed708ff2756f0fbabb763e2e5 Mon Sep 17 00:00:00 2001 From: JP <85654561+jp524@users.noreply.github.com> Date: Thu, 13 Jun 2024 13:25:15 -0500 Subject: [PATCH] Scroll new items added into view --- app/javascript/controllers/form_input_controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/controllers/form_input_controller.js b/app/javascript/controllers/form_input_controller.js index 35047849c8..2f5b3035bc 100644 --- a/app/javascript/controllers/form_input_controller.js +++ b/app/javascript/controllers/form_input_controller.js @@ -27,6 +27,7 @@ export default class extends Controller { detail: dest.lastElementChild, }); + dest.lastElementChild.scrollIntoView(); dest.dispatchEvent(afterInsert); }