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

A multiple select box with CloseOnSelect: false jumps to top of dropdown list #5067

Closed
8 of 16 tasks
fakeharxy opened this issue Oct 4, 2017 · 3 comments
Closed
8 of 16 tasks

Comments

@fakeharxy
Copy link

fakeharxy commented Oct 4, 2017

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate
  • The issue still exists against the latest master branch of Select2
  • This is not a usage question (Those should be directed to the community)
  • I have attempted to find the simplest possible steps to reproduce the issue
  • I have included a failing test as a pull request (Optional)

Steps to reproduce the issue

  1. Have a multiple select box
  2. Have closeOnSelect set to false
  3. Scroll down and select something
  4. You will jump to the top of the dropdown list

Expected behavior and actual behavior

When I follow those steps, I see... a jump to the top of the dropdown list

I was expecting... not to jump to the top of the dropdown list, so that I can continue to select more items at the same point in my long dropdown list

Environment

Browsers

  • Google Chrome
  • Mozilla Firefox
  • Internet Explorer

Operating System

  • Windows
  • Mac OS X
  • Linux
  • Mobile

Libraries

  • jQuery version: 3.2.1
  • Select2 version: 4.0.3

Isolating the problem

  • This bug happens on the examples page
  • The bug happens consistently across all tested browsers
  • This bug happens when using Select2 without other plugins
  • I can reproduce this bug in a jsbin
@alexweissman
Copy link
Contributor

I'm pretty sure that this is already a known issue. Are you certain that you:

searched for similar issues in both open and closed tickets and cannot find a duplicate

?

@alexweissman
Copy link
Contributor

Actually I'm gonna answer that for you. No, because there is already an issue about this at #4417.

@fakeharxy
Copy link
Author

Thanks for your help

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

No branches or pull requests

2 participants