Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Not able to disable the scrolling when the mouse is hovering the list item #887

@felipebetteloni

Description

@felipebetteloni

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions