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

Select2 stops working or starts working on rescale #5572

Closed
xl3lackkikx opened this issue Jul 17, 2019 · 2 comments
Closed

Select2 stops working or starts working on rescale #5572

xl3lackkikx opened this issue Jul 17, 2019 · 2 comments

Comments

@xl3lackkikx
Copy link

xl3lackkikx commented Jul 17, 2019

Hi!

I have been using select2 v4.0.3. There was the following bug:
Fix "the results could not be loaded" displaying during AJAX request (#4356)
So i upgraded to version 4.0.7 to get this fixed. Now i found the following problem.
Sometimes the select2 doesn't work. But when i rescale the browser or the block where the select2 element is in, the select2 will work again. I provided two sceenshots to show the problem:

In this picture you can see the select2 is not working:
image

In this picture you can see it started working again after a rescale of the browser
image

Does someone how to fixes this or can this be updated?

This problem only occurs in version 4.0.6 and version 4.0.7.
In multiple browsers:
IE v11.5
Chrome v75.0.3770.100
Firefox v68.0

@ivaynberg ivaynberg added the 4.x label Jul 17, 2019
@kevin-brown
Copy link
Member

Can you expand upon the issue you are facing by adding a few more pieces of information to your bug report?

  • What steps can be used to reproduce the issue?
  • Can you reproduce this issue on any of the examples in the docs?
  • What version of jQuery are you using? And what version of Select2?
  • Are you using Select2 with other plugins?

The contributing guide contains a useful section with a few questions which can help us track down the bug and speed up the process of finding a fix for it. The creation of an isolated test case would also be useful.

@xl3lackkikx
Copy link
Author

Thank you for your respond!
After testing again I found out that I am using the same id attribute value multiple times.
I have now fixed it!

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