Skip to content

Commit

Permalink
Set the inline property of scrollIntoView to nearest (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
stniemin authored Apr 25, 2022
1 parent d8efc5d commit bb3ec27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
const focusedItem = peopleList.children[this._arrowSelectionCount] as HTMLElement;
if (focusedItem) {
focusedItem.classList.add('focused');
focusedItem.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });
focusedItem.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' });
focusedItem.focus();
}
}
Expand Down

0 comments on commit bb3ec27

Please sign in to comment.