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

Broken focus after upgrading to jQuery 3.6.0 #3137

Open
michalfordonski opened this issue Nov 8, 2022 · 1 comment
Open

Broken focus after upgrading to jQuery 3.6.0 #3137

michalfordonski opened this issue Nov 8, 2022 · 1 comment

Comments

@michalfordonski
Copy link

Hello, after updating jQuery to 3.6.0, focus does not work after opening and you have to manually click on the search box.

@michalfordonski
Copy link
Author

Due to the lack of response and free time, I decided to look for the cause of the problem myself.
The solution in my case was to comment out 2 lines. Based on version 1.8.7 these are lines 1002 and 1060 containing:

1002:
this.search_field.focus();
1060:
return this.search_field.focus();

After commenting them out, focus works fine.

A similar fragment is also found in lines 929 and 1111, but I haven't noticed that 929 and 1111 are blocking the focus.

Of course, treat it as a temporary solution and when an official new version that fixes the problem appears, then update chosen.

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

1 participant