Skip to content

Commit bb3ec27

Browse files
authored
Set the inline property of scrollIntoView to nearest (#1653)
1 parent d8efc5d commit bb3ec27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mgt-components/src/components/mgt-people-picker/mgt-people-picker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
16611661
const focusedItem = peopleList.children[this._arrowSelectionCount] as HTMLElement;
16621662
if (focusedItem) {
16631663
focusedItem.classList.add('focused');
1664-
focusedItem.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });
1664+
focusedItem.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' });
16651665
focusedItem.focus();
16661666
}
16671667
}

0 commit comments

Comments
 (0)