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
{{ message }}
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.
The scrolling of the dropdown can be down by moving the mouse down in the autocomplete list. There is no way to disable that.
In the auto-complete.js file, the select function is called when the mouse hovers a list item that triggers the event 'suggestion-selected':
self.select = index => {
if (index < 0) {
index = self.items.length - 1;
}
else if (index >= self.items.length) {
index = 0;
}
self.index = index;
self.selected = self.items[index];
events.trigger('suggestion-selected', index);
};
And then it calls the function scrollToElement:
events.on('suggestion-selected', index => {
scrollToElement(element, index);
});
Is there any way to disable this feature for mouse hovering?
The text was updated successfully, but these errors were encountered:
@felipebetteloni
Why do you want to disable scrolling in the suggestions-list ?
How will you access all the elements if there are too many items in the list ?
From your description it seems like your issue is something else, because suggestion-selected shouldn't be fired only by hovering over the suggestion-list.
May be your mouse is faulty and clicking itself.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The scrolling of the dropdown can be down by moving the mouse down in the autocomplete list. There is no way to disable that.
In the auto-complete.js file, the select function is called when the mouse hovers a list item that triggers the event 'suggestion-selected':
And then it calls the function scrollToElement:
Is there any way to disable this feature for mouse hovering?
The text was updated successfully, but these errors were encountered: