Skip to content

Commit 4d29138

Browse files
ActionList: load(): Scroll active item into view
1 parent 0fdf274 commit 4d29138

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

asset/js/widget/ActionList.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,10 @@ define(["../notjQuery"], function ($) {
562562
this.clearSelection(this.getAllItems().filter(item => ! toActiveItems.includes(item)));
563563
this.setActive(toActiveItems);
564564
this.addSelectionCountToFooter();
565+
566+
if (toActiveItems.length) {
567+
this.scrollItemIntoView(toActiveItems[toActiveItems.length - 1], false);
568+
}
565569
}
566570
}
567571

0 commit comments

Comments
 (0)