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

maximumSelectionLength allows to select more options #3449

Closed
TheRulisp opened this issue Jun 9, 2015 · 3 comments
Closed

maximumSelectionLength allows to select more options #3449

TheRulisp opened this issue Jun 9, 2015 · 3 comments

Comments

@TheRulisp
Copy link

Located here: https://select2.github.io/examples.html
Find "Limiting the number of selections"

In example maximumSelectionLength is set to 2
If user select options by left mouse button, it works fine.

If user select options by ctrl+left mouse button, he can select as much options as he want.

Is this a bug or feature?

@kevin-brown
Copy link
Member

Is this a bug or feature?

It's a bug.

@alexyorke
Copy link
Contributor

In Chrome 46.0.2490.80 using 4.0.1-rc.1, I'm able to select as many options as I want to, provided that I do not click outside of the dropdown. The dropdown stays open the entire time when using ctrl to select the elements, and closes automatically when I've selected the max number of elements when not using ctrl.

When I click outside of the dropdown after selecting more elements than I was allowed to, it says that I can only select two elements.

@kevin-brown
Copy link
Member

This is actually a duplicate of #3514.

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

3 participants