Skip to content

Commit

Permalink
action-list: OnRendered(): sroll selected item into view
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jul 30, 2024
1 parent 65bb59b commit ea9ff6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/js/action-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,10 @@

_this.clearSelection(_this.getAllItems(list).filter(item => !toActiveItems.includes(item)));
_this.setActive(toActiveItems);

if (toActiveItems.length) {
_this.scrollItemIntoView(toActiveItems[toActiveItems.length - 1], 'ArrowDown');
}
}

if (isTopLevelContainer) {
Expand Down

0 comments on commit ea9ff6f

Please sign in to comment.