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 Jul 30, 2024
1 parent 41d14cf commit 693c554
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 693c554

Please sign in to comment.