From 693c554ec111794434a4d4d150709e42f05d90e8 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 30 Jul 2024 16:29:02 +0200 Subject: [PATCH] ActionList: load(): Scroll active item into view --- asset/js/widget/ActionList.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/asset/js/widget/ActionList.js b/asset/js/widget/ActionList.js index 77ce1b8d..940552b7 100644 --- a/asset/js/widget/ActionList.js +++ b/asset/js/widget/ActionList.js @@ -562,6 +562,10 @@ define(["../notjQuery"], function ($) { this.clearSelection(this.getAllItems().filter(item => ! toActiveItems.includes(item))); this.setActive(toActiveItems); this.addSelectionCountToFooter(); + + if (toActiveItems.length) { + this.scrollItemIntoView(toActiveItems[toActiveItems.length - 1], false); + } } }