You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, the _onKeyPressed function selects the next element, but if there is overflow-y scroll applied to the ul list,
it doesn't move the position with keycode = 38 and keycode = 40. User needs to use mouse to acually scroll thru list.
This is something that would be very nice to have :)
Many thanks!
Ivana
The text was updated successfully, but these errors were encountered:
const niceSelect = new NiceSelect2(select, {});
// When niceSelect.dropdown gets the class open. find the li with the class .focus and scrollIntoView
niceSelect.dropdown.addEventListener('transitionend', () => {
if (niceSelect.dropdown.classList.contains('open')) {
const focus = niceSelect.dropdown.querySelector('.focus');
if (focus) {
focus.scrollIntoView({ block: 'nearest' });
}
}
});
So, the _onKeyPressed function selects the next element, but if there is overflow-y scroll applied to the ul list,
it doesn't move the position with keycode = 38 and keycode = 40. User needs to use mouse to acually scroll thru list.
This is something that would be very nice to have :)
Many thanks!
Ivana
The text was updated successfully, but these errors were encountered: