We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c1b32 commit 47cc730Copy full SHA for 47cc730
src/main/js/util/keyboard.js
@@ -82,9 +82,7 @@ export default function makeKeyboardNavigable(
82
83
function scrollAndSelect(selectedItem, selectedClass, items) {
84
if (selectedItem) {
85
- if (!isInViewport(selectedItem)) {
86
- selectedItem.scrollIntoView(false);
87
- }
+ selectedItem.scrollIntoView({ block: 'center', behavior: 'smooth' });
88
selectedItem.classList.add(selectedClass);
89
if (items.includes(document.activeElement)) {
90
selectedItem.focus();
0 commit comments