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

Removing every second option closes the dropdown #6033

Closed
donruperto opened this issue May 18, 2021 · 1 comment
Closed

Removing every second option closes the dropdown #6033

donruperto opened this issue May 18, 2021 · 1 comment

Comments

@donruperto
Copy link

Hi,

using Select2 with the option data-close-on-select=false causes the dropdown to close on every second remove-click on a selected option. It should stay open until i force to close it.

demo can be found here: JsFiddle

steps to reproduce:

  • click into select
  • select all 4 options
  • close select by clicking next to "Option 4"
  • remove "Option 4" => select opens
  • remove "Option 3" => select closes
  • remove "Option 2" => select opens again
@kevin-brown
Copy link
Member

kevin-brown commented May 21, 2021

You're seeing the side effect of a different issue (that's marked wontfix): clicking the clear button or the remove button toggles the drop-down. What you're really seeing is it toggle every time, not just it opening every second time.

Duplicate of #3320

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