Skip to content

Commit

Permalink
ActionList: load(): Scroll active item into view
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Aug 5, 2024
1 parent 8547467 commit 86196fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions asset/js/widget/ActionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 86196fa

Please sign in to comment.