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 not enforced with closeOnSelect: false #4457

Closed
realalex opened this issue Jul 5, 2016 · 1 comment
Closed

maximumSelectionLength not enforced with closeOnSelect: false #4457

realalex opened this issue Jul 5, 2016 · 1 comment

Comments

@realalex
Copy link

realalex commented Jul 5, 2016

While I'd normally be more thorough with your reporting format, this one is pretty self-explanatory.

$('.select2').select2({
        closeOnSelect: false, 
        maximumSelectionLength: 4
});

When closeOnSelect is false, the users have free reign to select as many options as they want. closeOnSelect: true solves the issue, but it's totally unintuitive.

@kevin-brown
Copy link
Member

This is a duplicate of #3514.

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