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

Is maximumSelectionLength and closeOnSelect used on same time ? #4916

Closed
11 tasks
sabinesh01 opened this issue May 23, 2017 · 1 comment
Closed
11 tasks

Is maximumSelectionLength and closeOnSelect used on same time ? #4916

sabinesh01 opened this issue May 23, 2017 · 1 comment

Comments

@sabinesh01
Copy link

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. set options maximumSelectionLength:2, closeOnSelect: false for select tag with multiple attribute.
  2. closeOnSelect:false is working fine but the maximumSelectionLength:2 is not working.
  3. able to select all the options in dropdown.
  4. maximumSelectionLength error message displays when i delete the options from input box
  5. Please find the attachment. the error message displays when i delete the options

Expected behavior and actual behavior

When I follow those steps, I see, able to select all the options in dropdown

I was expecting, close the dropdown after select 2 options

Environment

Browsers

  • [-] Google Chrome
  • [-] Mozilla Firefox
  • Internet Explorer

Operating System

  • Windows
  • [-] Mac OS X
  • Linux
  • Mobile

Libraries

  • jQuery version: 1.11.3
  • Select2 version: 4.0.2

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

screen shot 2017-05-23 at 11 22 22 am

@alexweissman
Copy link
Contributor

This is 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

2 participants