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

Search field not focused #38

Closed
stojanvujkov opened this issue Jun 7, 2021 · 1 comment
Closed

Search field not focused #38

stojanvujkov opened this issue Jun 7, 2021 · 1 comment
Labels
wontfix This will not be worked on

Comments

@stojanvujkov
Copy link

stojanvujkov commented Jun 7, 2021

Using latest versions of bootstrap5, jquery and select2, theme does not focus on the search field when dropdown opens. See attachment.
index.txt

@apalfrey
Copy link
Owner

apalfrey commented Jun 8, 2021

Looks like this is a known issue in Select2: select2/select2#5993

As this is just a theme which is purely CSS, there's nothing we're able to do to fix this and you'll have to refer to there. However, I did do some testing and there are some ways to fix this;

Downgrading to jQuery 3.5.1 doesn't have this issue as seen here: https://codepen.io/TGDPalf/pen/yLMERBw

Also, there is a fix in the issue I linked above (found here: select2/select2#5993 (comment)). I've tried that out and it does seem to work just fine with jQuery 3.6.0 and the code you supplied as seen here: https://codepen.io/TGDPalf/pen/LYWrgGb

Sorry we couldn't be of more help as the issue seems to be on Select2/jQuery's side, but I hope this has helped you get that sorted out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants