Wrong behavior for select2


#1

I am using select2 in my application. When using locally works fine but when I deploy to the webhosting it has the following behavior, you can select any option but select2 won’t close even when I force to close on select. I need to close the dropdown on select. the closeOnSelect is not working either. I am building with webpack first. But it works on my local environment. I also realize that open and opening events are firing twice.


#2

There seems to be a bug in version 4.0.6. The 4.0.7-rc.0 release doesn’t seem to have the bug, so my advice is to switch to that version.


#3

Thanks a lot. It solved my issue


#4

I’m glad it worked for you.