Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent scrolling to the first selected element in multiselect #4565

Closed
delphir-com opened this issue Sep 5, 2016 · 1 comment
Closed

prevent scrolling to the first selected element in multiselect #4565

delphir-com opened this issue Sep 5, 2016 · 1 comment

Comments

@delphir-com
Copy link

Seems that there is a bug in this action as every click on other that the fist selected element in the list (when auto-close is disabled) scrolls list up to the first selected element again and again.

Possible Solution:
self.highlightFirstItem() must be removed or ignored in case when there are more than 1 item selected.

    container.on('select', function () {
      if (!container.isOpen()) {
        return;
      }

      self.setClasses();
      self.highlightFirstItem();
    });
@jgbishop
Copy link

jgbishop commented Sep 5, 2016

This may be a duplicate of #4417.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants